Skip to content

Commit 32d4fed

Browse files
author
MANEL-PC\Manel
committed
Changed 'mousewheel' event to 'wheel' in mouse_event.js
1 parent 7f983c5 commit 32d4fed

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/jasmine/assets/mouse_event.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ module.exports = function(type, x, y, opts) {
3636
var el = (opts && opts.element) || document.elementFromPoint(x, y);
3737
var ev;
3838

39-
if(type === 'scroll' || type === 'mousewheel') {
40-
// somehow table needs this to be mouswheel but others need wheel.
41-
// yet they all work the same in the browser?
42-
type = (type === 'scroll') ? 'wheel' : 'mousewheel';
39+
if(type === 'scroll' || type === 'wheel') {
40+
type = 'wheel';
4341
ev = new window.WheelEvent(type, Lib.extendFlat({}, fullOpts, opts));
4442
} else {
4543
ev = new window.MouseEvent(type, fullOpts);

0 commit comments

Comments
 (0)