Skip to content

Commit 1896606

Browse files
committed
- Enhancement: preventing scroll of parent frames on scroll
1 parent fc10340 commit 1896606

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/js/mouse/wheel.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,8 @@ function MouseWheelHandler(e) {
151151
scrollings.push(Math.abs(value));
152152

153153
//preventing to scroll the site on mouse wheel when scrollbar is present
154-
if(getOptions().scrollBar){
155-
utils.preventDefault(e);
156-
}
154+
//and preventing scroll of parent frames
155+
utils.preventDefault(e);
157156

158157
//time difference between the last scroll and the current one
159158
var timeDiff = curTime-prevTime;

0 commit comments

Comments
 (0)