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

inconsistent behavior with touch events

Asked by Vincent
1 month 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 month 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
1 month ago.

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

Answer posted by Dan Letecky [DayPilot]
1 month ago.

Thanks for the update. This issue should be fixed already (since 2024.2.5936).

If the problem persists with the latest version, please let me know.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.