anvaka / anvaka/VivaGraphJS

Double click problem

Open
#240 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.9k
Forks
418
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in src/WebGL/webglInputEvents.js and inspect the 'mouseup' listener and its click handling. Reproduce single- and double-click interactions, then verify that each gesture triggers the appropriate event without the single-click firing prematurely.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.