Skip to content
This repository was archived by the owner on Apr 15, 2020. It is now read-only.

Commit 0a7530e

Browse files
committed
Fixed double snap issue in Chrome on Mac
Closes #16. Thanks @nolafs
1 parent 42cc554 commit 0a7530e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directives/snapscroll.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103

104104
delta = Math.max(-1, Math.min(1, (e.wheelDelta || -(e.deltaY || e.detail))));
105105

106-
if (isNaN(delta)) {
106+
if (isNaN(delta) || delta === 0) {
107107
return;
108108
}
109109

0 commit comments

Comments
 (0)