Skip to content

Commit 7f983c5

Browse files
author
MANEL-PC\Manel
committed
Changed the table scroll tests to use 'wheel' instead of 'mousewheel'
1 parent 67c96d3 commit 7f983c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jasmine/tests/table_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ describe('table', function() {
415415
gdWheelEventCount = 0;
416416
Plotly.plot(gd, mockCopy.data, mockCopy.layout)
417417
.then(function() {
418-
gd.addEventListener('mousewheel', function(evt) {
418+
gd.addEventListener('wheel', function(evt) {
419419
gdWheelEventCount++;
420420
// make sure we don't *really* scroll the page.
421421
// that would be annoying!
@@ -440,7 +440,7 @@ describe('table', function() {
440440

441441
function scroll(pos, dy) {
442442
mouseEvent('mousemove', pos.x, pos.y);
443-
mouseEvent('mousewheel', pos.x, pos.y, {deltaX: 0, deltaY: dy});
443+
mouseEvent('wheel', pos.x, pos.y, {deltaX: 0, deltaY: dy});
444444
}
445445

446446
it('bubbles scroll events iff they did not scroll a table', function() {

0 commit comments

Comments
 (0)