- Home
- Forum
- React - EJ 2
- eventClick event is triggered while touch scrolling on windows devices with touch screens
eventClick event is triggered while touch scrolling on windows devices with touch screens
On windows devices with touch screens when user touch scrolls on an event the eventClick handler is fired.
In the following code you try to cancel this event by calling e.preventDefault() but this event is not cancellable anymore and error occured:
[Intervention] Ignored attempt to cancel a touchend event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.
r.eventTouchClick
The code on subject from event-base.js
r.prototype.eventTouchStart = function (e) {
this._touchMoved = false;
};
r.prototype.eventTouchMove = function (e) {
this._touchMoved = true;
};
and then check it this way:
r.prototype.eventTouchEnd = function (e) {
if (this._touchMoved) {
// This was a scroll -> do nothing
return;
}
...
Best regards,
Hi Eugene
We have checked and validated your reported query for your requirement. But
could you please explain your use case scenario in a bit more detail?
Additionally, we need some more information to complete our validation. Please
provide the following details for further validation.
- A minimal reproducible sample or the full code snippet that reproduces the issue
- Step-by-step instructions to reproduce the issue
- A short video/screen recording demonstrating the issue
Providing
these details will help us validate and troubleshoot the problem more
effectively.
Regards,
Vijay
Steps to reproduce:
- Device: windows based with touchscreen, for example Lenovo ThinkPad X1 Tablet (Gen 2 or Gen 3)
Hi Eugene,
Regards,
Vijayakumar R
Hi
In your example you cancel the event and preventDefault() . Remove these lines and you should see the problem.
Hi Eugene,
args.cancel = true; args.originalEvent.preventDefault(); |
Regards,
Vijayakumar R
- 5 Replies
- 3 Participants
-
EU Eugene
- Feb 6, 2026 03:13 PM UTC
- Feb 18, 2026 08:24 AM UTC