I'm at a bit of a loss here. I have an issue that I think may be due to mouse events taking precedence. I have a function f
being invoked on mouse clicks - f
does some work, then invokes another function g
. Is it even possible that f
runs, then another click happens - invoking f
again - and then g
is executed?
If my phrasing is hard to understand, I'll try to show what I think may be happening:
click1 ----- /-----------\
\ / \
f -- f-- g g
/ \ /
click2 ------------ / \--------
|---------------- timeline----------------------|
I can say for certain the issue only arises (out of ~50 slow and ~50 quick double-clicks) when clicking twice in very quick succession (and not always even then). I realize my figure may confuse more than it clarifies, but I'm not sure how else to communicate my thoughts. Any input is greatly appreciated!