Skip to content

Commit

Permalink
- Enhancement: preventing scroll of parent frames on scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarotrigo committed Jun 20, 2024
1 parent fc10340 commit 1896606
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/js/mouse/wheel.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,8 @@ function MouseWheelHandler(e) {
scrollings.push(Math.abs(value));

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

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

0 comments on commit 1896606

Please sign in to comment.