-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Doubleclick - Drag bug [Fixes #333] #355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Interesting... I'm not entirely sure what condition So that we don't recreate whatever problem it was though, what about a different solution: whenever |
Hmm. I was hoping that either you or Etienne would be familiar with The core issue is that Regardless, I'm unsure that the code has another purpose now - as far as I can reason about, it is simply a delay of If we can decipher why it should be left in, I'm happy to change it, but I would prefer to have a small interaction bug crop up in the future so that we can write a tested and robust solution, rather than to leave in code that might be important, but nobody quite knows for sure. Additionally, adding a |
Ok, makes sense. I found where this went in, it was when I made the plotlyjs showcase for streambed - https://github.com/plotly/streambed/pull/1176 Unfortunately I don't see that I discussed why at that point, but at the very least we should be able to run the examples in there against this branch and see if something fails. Remember to try all 3 different kinds of Cartesian drag/zoom regions (plot, single axis, and corner) as well as plots with enough data that you need more than |
- move copy-mock step and add-custom-matchers to suite scope - rewrite one test as promise chain - define auto range values in suite scope
- large drag values resulted in failed tests in small window sizes
|
||
return [ | ||
corners.nw.x + (corners.ne.x - corners.nw.x) / 2, | ||
corners.ne.y + (corners.se.y - corners.ne.y) / 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI @mdtusz ⏫
This reverts commit dc770e2.
- to speed up tests - add overwrite arg (so that double-click + drag test works)
Maybe I'm getting old and slow, but since I merged this into my WIP I find |
We can use the OS double click delay, but as far as I know, only through That said, I have no issue changing it back! |
Ok, I'd vote for 500 then, Windows probably sets a precedent that will work for most people. |
Fixes #333
In Brief
DBLCLICKDELAY
from600
to300
pauseForDrag
method and calls - this prevented the next mouse actions from completing until after aDBLCLICKDELAY
delayConcerns
I can't see any areas that rely on the behaviour of the
pauseForDrag
call, and nothing appears to be broken by the changes, but it is possible there is some user-interaction that may not behave properly if this delay is removed.@alexcjohnson @etpinard