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.

Problems with `touchend` event handling

See original GitHub issue

Unfortunately, a fix that I suggested for the issue #34 together with a fix for the #56 introduces some serious issues with handling click events triggered from control inside a tooltip.

On a mobile device that supports both click and touchend events touchend “outside click” handler intercepts all events, eg. click on a button inside the tooltip.

https://codesandbox.io/s/6xwrm2zxrr

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
olekbrukscommented, Apr 17, 2019

Look like that everything is ok! I will wait for the response from the test team.

1reaction
mohsinulhaqcommented, Apr 11, 2019

Hey bro, could you please help me out and tell me if v2.8.2 solves your use case. I saw that removing preventDefault from only the outside click handler makes your example as well as an example from another issue work. It would be great if you can confirm from your side.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Touchend event not working correctly with touches array
This is because touchend event is fired when touch point is removed. No touch point, no targetTouches. MDN TouchEvent.targetTouches.
Read more >
Element: touchend event - Web APIs - MDN Web Docs - Mozilla
The touchend event fires when one or more touch points are removed from the touch surface.
Read more >
Touch Event Handling in JavaScript - Jenkov.com
Touch Event Listeners ; touchend, Fired when the user stops touching the screen. ; touchleave, Fired when the user moves their fingers outside...
Read more >
Touchend event not fired if finger is dragged on the ... - Monorail
It looks like there are two issues at play: 1. Android Chrome's dispatching of 'touchend' is not reliable. 2. Android Chrome and iOS...
Read more >
Easy fix for: '[Intervention] Ignored attempt to cancel ... - URIports
Alright, so on your (probably mobile) site, there is an event listener that listens to touch input. When this listener is in the...
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