I’m working on some HTML5 canvas drawing. The drawing application is an IPad WebApp.
Now I would like to know whether there is any possibility to track a long tap (tap and hold) on the canvas and to link it to an event outside the canvas. For example: I tap hold for three seconds on the canvas, which causes a Popup to be visible.
You can simply set a Timeout on the
mousedownevent of the canvas,then clear it on the
mouseupevent.Here’s a Demo