From fcab94855a55855cc1b31a94b7435d8ce482b559 Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Fri, 8 Feb 2019 12:27:25 -0500 Subject: [PATCH] fix(overflow-scrolling): remove old patch now unnecessary, closes #332 --- slick.grid.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/slick.grid.js b/slick.grid.js index 58a6ee72..129a4fa4 100644 --- a/slick.grid.js +++ b/slick.grid.js @@ -576,11 +576,6 @@ if (typeof Slick === "undefined") { .on("mouseenter", ".slick-cell", handleMouseEnter) .on("mouseleave", ".slick-cell", handleMouseLeave); - // Work around http://crbug.com/312427. - if (navigator.userAgent.toLowerCase().match(/webkit/) && - navigator.userAgent.toLowerCase().match(/macintosh/)) { - $canvas.on("mousewheel", handleMouseWheel); - } restoreCssFromHiddenInit(); } } @@ -4549,7 +4544,7 @@ if (typeof Slick === "undefined") { function scrollPage(dir) { var deltaRows = dir * numVisibleRows; - /// First fully visible row crosses the line with + /// First fully visible row crosses the line with /// y == bottomOfTopmostFullyVisibleRow var bottomOfTopmostFullyVisibleRow = scrollTop + options.rowHeight - 1; scrollTo((getRowFromPosition(bottomOfTopmostFullyVisibleRow) + deltaRows) * options.rowHeight);