wheelEventTarget equivalent for touch events
See original GitHub issueHello there,
I’m working on a project where I have to set the wheelEventTarget
to the document
because of fixed elements appearing above the scroll area. It works as expected.
However, is there an equivalent for touch inputs? As of right now, Smooth Scrollbar doesn’t prevent the touchmove
event and doesn’t scroll the scroll area when the touchstart
happens on a fixed element above the content, which can be really annoying.
I feel like this could be a really helpful addition to the options list.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Touch events - Web APIs - MDN Web Docs - Mozilla
When a touchstart event occurs, indicating that a new touch on the surface has occurred, the handleStart() function below is called. function ...
Read more >JavaScript mapping touch events to mouse events
I want to make it respond to touchmove events (iPhone and Android). How can I produce a mouse move event when a touchmove...
Read more >Timeline – WebKit
touch events when it shouldn't. ... wheelEventTarget argument. ... Added a function to be called when switching to a substitute resource. We still...
Read more >Touch Events - W3C
This interface defines the touchstart, touchend, touchmove, and touchcancel event types. TouchEvent objects are immutable; after one is created ...
Read more >Touch events | Can I use... Support tables for HTML5, CSS3, etc
Method of registering when, where and how the interface is touched, for devices with a touch screen. These DOM events are similar to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
delegateTo
option is added in 8.3.0 🎉. Let me know if it doesn’t work for you 😃Alright, I’ll add that option this weekend if you are not in a hurry. 🙌