Replies: 2 comments
-
I've had the same issue and solved it like this: function enableScroll(e){
let mst = e.target.scrollHeight - e.target.clientHeight;
if (mst != 0) {
pswp.options.wheelToZoom = false;
e.target.scroll({
top: e.deltaY, behavior: "smooth"
});
setTimeout(function() {pswp.options.wheelToZoom = true;}, 100);
}
}
// somewhere else, with "el" as the scrollable element (just after its creation):
el.addEventListener('wheel', enableScroll); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have image thumbnails as gallery pagination. When thumbs do not fit into screen, scrollbar appears. But I am unable to scroll with mouse wheel.
wheelToZoom for image zoom is enabled but there is no difference if disabled. Is there a way to enable scrolling for that section?.
I have tried to add a filter like this but it does not work:
Here is the example screenshot:
Beta Was this translation helpful? Give feedback.
All reactions