question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

wheelEventTarget equivalent for touch events

See original GitHub issue

Hello 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:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
idiotWucommented, Jun 16, 2018

delegateTo option is added in 8.3.0 🎉. Let me know if it doesn’t work for you 😃

1reaction
idiotWucommented, Jun 11, 2018

Alright, I’ll add that option this weekend if you are not in a hurry. 🙌

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found