diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-09-03 14:09:36 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-09-03 14:09:36 +0200 |
commit | 2a8b5ea3fb6b3a62ed53d367b6d16d1515422ab9 (patch) | |
tree | df0379c0d32783acb0f1a5e7b6cea54096cef5f0 /src | |
parent | e70cdef7a5a21eda34f5f90260f9fd26099d274e (diff) | |
download | svg.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.js | 9 |
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) { |