Fix scrolling within nested scrollable DIVs.

Fixes https://github.com/noraesae/perfect-scrollbar/issues/101
This commit is contained in:
Stephan Richter 2014-03-22 11:29:07 -04:00
parent 2ccb8f18d5
commit 1a335902cc

View File

@ -310,6 +310,7 @@
shouldPrevent = shouldPreventDefault(deltaX, deltaY); shouldPrevent = shouldPreventDefault(deltaX, deltaY);
if (shouldPrevent) { if (shouldPrevent) {
e.stopPropagation();
e.preventDefault(); e.preventDefault();
} }
}); });