Closed LouisCuvelier closed 4 years ago
This is something i have experimented with, looks like Body Scroll Lock has figured out the secret to it. I really don't want to add a dependency to ICV, so I'll dig through Body Scroll Lock and see if iI can figure out what they're doing.
I forgot the "dependency free" in "to keep image-compare-viewer dependency free" in my first message.
Rather than integrating to the package, you can give access with the two events described above, so users can add or not Body Scroll Lock thanks to those events ?
This is fixed in 1.4.0
It would be nice if we could disable scrolling when we are sliding, especially on mobile. Body Scroll Lock seems to be a nice solution.
But, to keep
image-compare-viewer
dependency free, we need to have access to events likeonSlidingStart
andonSlidingEnd
that return the html element.What do you think ?