Click events are magically turned into touch events
See original GitHub issueWhen the browser supports touch events, the onClick
event is automatically turned into a onTouchEnd
event:
https://github.com/mohsinulhaq/react-popper-tooltip/blob/master/src/TooltipTrigger.tsx#L208-L215
This is an issue for some laptops with a touch screen that do not trigger onTouchEnd
when using a mouse.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Converting GWT Click Events to Touch Events - Stack Overflow
As a part of this, i have noticed that touch devices takes 300ms delay to handle click events. In this project, writing touch...
Read more >Using Touch Events - Web APIs | MDN
Browsers typically dispatch emulated mouse and click events when there is only a single active touch point. Multi-touch interactions involving ...
Read more >Touch adjustment can cause touch and click events on a tap ...
"Touch adjustment" is a feature where, on a tap (or long press) we attempt to select the best target for the event considering...
Read more >Pointer events - The Modern JavaScript Tutorial
Pointer events are a modern way to handle input from a variety of pointing devices, such as a mouse, a pen/stylus, a touchscreen,...
Read more >Notes on handling clicks and taps on iOS devices ... - GitHub
Alternatively, you can listen to touch events instead of clicks. Preferably listen to both because we do have devices with both physical keyboards...
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 FreeTop 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
Top GitHub Comments
Hi, sorry for the late reply, but I can confirm that 2.8.1-alpha.1 fixes the issue. Looking forward to the next release. Thanks a lot for your help!
I’ll try to test again with the customer this week. Thanks for helping on this issue 🙏
Envoyé de mon iPhone