From 2a8b5ea3fb6b3a62ed53d367b6d16d1515422ab9 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Sun, 3 Sep 2023 14:09:36 +0200 Subject: add more events to sugar (fixes #1217) --- src/modules/optional/sugar.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3