anvaka / VivaGraphJS

Graph drawing library for JavaScript
Other
3.77k stars 425 forks source link

Double click problem #240

Open sinandirlik opened 5 years ago

sinandirlik commented 5 years ago

On 'mouseup' listener, there is not any timeout for one click hence double click can never be invoked. I'm talking about this page : https://github.com/anvaka/VivaGraphJS/blob/master/src/WebGL/webglInputEvents.js

I think there should be a 400msec timeout for one click, if another click happens then double click will be invoked, in other case one click will be invoked.