Double tap not working on mobile

Hello. Does double click work on mobile? I couldn't get it to work. On desktop dblclick works fine.

Are you trying with tap() or are you trying with the on("doubleclick"...) ?

I have found it suspect in the past so switched to a press and hold for things like deleting points in a Blob or removing Connector nodes, etc.

If you do try tap() with the dbl:true then pay attention to the available callbacks.

I am trying to do it with "dblclick". Removing points by holding down is not suitable for the application I am making. I am making a geometric board. The user should double click on the point they want to delete. If they want to delete by holding down, sometimes there may be confusion during the transfer.

dragPoint.tap({call:doubleTiklama,dbl:true})

var _this=this

function doubleTiklama(e){

_this.removeVertex(dragPoint);
}

this code worked. You made a statement about something we should pay attention to in the latest version of Tap, what was that? I don't know.

Glad the tap() with dbl worked. That is probably fine then. There are a variety of callbacks on tap() that do different things - but if you have what you want then I guess the default is good.

1 Like