forked from kylewetton/image-compare-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove disableBodyScroll / enableBodyScroll
- Loading branch information
1 parent
45405c0
commit 516da11
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
516da11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will break the image viewer on mobile, the body scroll lock is intended to get around conflicting touch events.
I've tested the latest build on devices on my end and this works, not sure how I can help with reports of it not working
disableBodyScroll(this.el, {reserveScrollBarGap: true});
I'd recommend a setting that disables it instead, and happy for a PR to merge if you have time to make that change