Monday, 17 December 2018

How to remove JavaScript touch event handler from document and window

I have a web page which displays a calendar by FullCalendar

The calendar is being hosted inside a public Salesforce Community page.

I want to be able to create events in the calendar via a mobile device using touch and drag.

Both Salesforce Communities and FullCalendar support mobile devices.

And FullCalendar has touch support

But when I access the community page using a mobile device I am unable to use the touch and drag to create a calendar entry.

There are touch event handlers created by the Salesforce community page/framework:

  • document for touchstart and touchend and touchcancel
  • window for touchmove

Which seem to override the FullCalendar touch events.

Here is an example calendar for debugging:

How can I remove the touch event handlers on the document and window?



from How to remove JavaScript touch event handler from document and window

No comments:

Post a Comment