You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because of the implementation of dragging, left will take precedent if both are down. Instead of this block, should we care about which has been down for the least amount of time? That is probably the most idiomatic.
There are two possible ways we could have fixed this inconsistency.
Both directions down cancel each other out
If both down, take the value from the "most recent" direction down.
(1) is much much easier to implement, so that is where we will start. We also like it quite a bit. @jessegreenberg can you recommend if you'd prefer to see (2)? Please review.
Thanks! I have flip-flopped on this, I changed it last in #1460. I like your change. 1) also seems most expected for 2D dragging and gaming contexts. Closing.
Discovered while reviewing phetsims/my-solar-system#86.
Because of the implementation of dragging, left will take precedent if both are down. Instead of this block, should we care about which has been down for the least amount of time? That is probably the most idiomatic.
scenery/js/listeners/KeyboardDragListener.ts
Lines 792 to 805 in e615c88
@jessegreenberg have we discussed this before? I can't tell if it is a bug.
The text was updated successfully, but these errors were encountered: