Skip to content

Commit

Permalink
fix: remove mousewheel scroll handler when option is disable (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding authored Nov 28, 2020
1 parent 5077d31 commit 702c793
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions slick.grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -2928,6 +2928,8 @@ if (typeof Slick === "undefined") {
if (!viewportEvents || !viewportEvents.mousewheel) {
$viewport.on("mousewheel", handleMouseWheel);
}
} else if (options.enableMouseWheelScrollHandler === false) {
$viewport.off("mousewheel"); // remove scroll handler when option is disable
}
}

Expand Down

0 comments on commit 702c793

Please sign in to comment.