aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2023-09-03 14:09:36 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2023-09-03 14:09:36 +0200
commit2a8b5ea3fb6b3a62ed53d367b6d16d1515422ab9 (patch)
treedf0379c0d32783acb0f1a5e7b6cea54096cef5f0 /src
parente70cdef7a5a21eda34f5f90260f9fd26099d274e (diff)
downloadsvg.js-2a8b5ea3fb6b3a62ed53d367b6d16d1515422ab9.tar.gz
svg.js-2a8b5ea3fb6b3a62ed53d367b6d16d1515422ab9.zip
add more events to sugar (fixes #1217)
Diffstat (limited to 'src')
-rw-r--r--src/modules/optional/sugar.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/modules/optional/sugar.js b/src/modules/optional/sugar.js
index aa5fb82..7ce3bd4 100644
--- a/src/modules/optional/sugar.js
+++ b/src/modules/optional/sugar.js
@@ -174,7 +174,14 @@ const methods = [
'touchmove',
'touchleave',
'touchend',
- 'touchcancel'
+ 'touchcancel',
+ 'contextmenu',
+ 'wheel',
+ 'pointerdown',
+ 'pointermove',
+ 'pointerup',
+ 'pointerleave',
+ 'pointercancel'
].reduce(function (last, event) {
// add event to Element
const fn = function (f) {