You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scroll the off canvas navigation with touch (or on mobile device emulation with clicking and dragging the mouse) – not with the scroll bar or with scroll functionality of your mouse.
Sorry for my late reply. I'm aware of this issue and will release a minor update a.s.a.p. An extra enhancement is that this behavior will be a global setting, over-writable for each sidebar.
I will notify you when I push it to GitHub!
For now you can remove those lines of code.
Why do you include touchend in the list of events there? Doesn't all touch enabled browser emulate the click event?
Unfortunately no. Some browsers do not trigger the click event for touch devices.
Hi @d--j
If you are able, please check the PR for the new 0.5 version!
It's currently tagged as 0.5-dev so you will still be notified of any live updates through WP.
Thanks, Jory
Expected Behavior
The Sidebar should be able to be scrolled without being closed thereafter.
Actual Behavior
When a user scrolls the sidebar with touch and she happens to end the scroll on a link (
<a>tag) then the sidebar closes.Steps to Reproduce the Problem
Specifications
Pointers
This code is probably responsible for this behaviour:
off-canvas-sidebars/js/off-canvas-sidebars.js
Lines 389 to 394 in 72a2d33
Why do you include
touchendin the list of events there? Doesn't all touch enabled browser emulate theclickevent?The text was updated successfully, but these errors were encountered: