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.

Click events are magically turned into touch events

See original GitHub issue

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

github_iconTop GitHub Comments

1reaction
mauricesvaycommented, Mar 4, 2019

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!

1reaction
mauricesvaycommented, Feb 26, 2019

I’ll try to test again with the customer this week. Thanks for helping on this issue 🙏

Envoyé de mon iPhone

Le 26 févr. 2019 à 17:54, Mohsin Ul Haq notifications@github.com a écrit :

Hi, any update?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Read more comments on GitHub >

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

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