From 1a335902cc8087e07262e2e7b75c91f84c6a261a Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Sat, 22 Mar 2014 11:29:07 -0400 Subject: [PATCH] Fix scrolling within nested scrollable DIVs. Fixes https://github.com/noraesae/perfect-scrollbar/issues/101 --- src/perfect-scrollbar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/perfect-scrollbar.js b/src/perfect-scrollbar.js index 9c31fe9..5a397d4 100644 --- a/src/perfect-scrollbar.js +++ b/src/perfect-scrollbar.js @@ -310,6 +310,7 @@ shouldPrevent = shouldPreventDefault(deltaX, deltaY); if (shouldPrevent) { + e.stopPropagation(); e.preventDefault(); } });