search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

inconsistent behavior with touch events

Asked by Vincent
1 day ago.

I am having some issues with the grid’s event onEventClick event, when trying to capture a touch on an event. It seems to be triggering twice as both a click and a touch. It doesn’t seem to be consistent but it does happen enough that it’s causing issues. It doesn’t seem like prevent defaults is working either in the onEventClick().

is this something that has been reported before? Is there anything that could be done to prevent this?

Comment posted by Dan Letecky [DayPilot]
1 day ago.

Could you please specify:

  • your device

  • browser

  • DayPilot version

  • component (Calendar, Scheduler…)

The event click is handled using touchstart and the default click handler is canceled because exactly this can sometimes happen (the click event fires unreliably on touch devices).

Comment posted by Vincent
6 hours ago.

I’m using google chrome, simulating a mobile device. Version is 2022.1.5242. it is the scheduler component.

New Reply
This reply is
Attachments:
or drop files here
Your name (optional):