aboutsummaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2025-03-21 00:03:17 +0100
committerGitHub <noreply@github.com>2025-03-21 00:03:17 +0100
commit44de3d325c1ac0c4a841deff0ec03265a0b670f7 (patch)
tree1e2d6714843aead988ec134ecace8a75e01cba24 /Gruntfile.js
parent6843ced12e4051aefbee47cf87fa79794737eb8a (diff)
downloadjquery-ui-44de3d325c1ac0c4a841deff0ec03265a0b670f7.tar.gz
jquery-ui-44de3d325c1ac0c4a841deff0ec03265a0b670f7.zip
Spinner: Prevent double mousewheel & wheel event handling
As of gh-2338, if one has loaded the jQuery MouseWheel plugin, the `mousewheel` handler would fire the `wheel` one, but the `wheel` one would also run in response to the native `wheel` event, resulting in double the distance handled by the spinner. To prevent the issue, only fire the `wheel` handler from inside the `mousewheel` on if the event was triggered by jQuery - jQuery will not care that the underlying event is `wheel` and will only fire handlers for `mousewheel`. Also, add an iframe test using jQuery MouseWheel to not affect all the other tests. Plus, migrate from `QUnit.reset` to `QUnit.done` (see qunitjs/qunit#354). Closes gh-2342 Ref gh-2338
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 4f7dcc73e..bbb71d33e 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -247,6 +247,9 @@ grunt.initConfig( {
"requirejs/require.js": "requirejs/require.js",
+ "jquery-mousewheel/jquery.mousewheel.js": "jquery-mousewheel/jquery.mousewheel.js",
+ "jquery-mousewheel/LICENSE.txt": "jquery-mousewheel/LICENSE.txt",
+
"jquery-simulate/jquery.simulate.js": "jquery-simulate/jquery.simulate.js",
"jquery-simulate/LICENSE.txt": "jquery-simulate/LICENSE.txt",