Commit 559e3e4
committed
Prevent scrolling if event was canceled by inner handler
Since smooth-scroll event is attached to the body, another
handler may cancel the default behavior, but the event will
still bubble up to the body, triggering a page scroll.
It seems reasonable that if any inner event handle cancels
the default behavior that no scrolling should be triggered.1 parent 61d1e74 commit 559e3e4
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
498 | 501 | | |
499 | 502 | | |
500 | 503 | | |
| |||
0 commit comments