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
I noticed this while testing in ph-scale. If you shift tab back to the dropper node, it will move slowly as if shift is still pressed down. @pixelzoom fyi.
This is happening in ph-scale because the dropper button comes after the dropper node in the traversal order and the dropper button is a child of the dropper node.
Shift key is pressed while focus is on the dropper button and shift gets added to the KeyboardDragListener.keyState.
Tab is pressed on the dropper button and focus moves to the dropper Node
Shift is released and we never get a keyup event for it
So shift is still in the keystate and the KeyboardDragListener is stuck in slow mode. I think the lack of keyup event for shift release after shift + tab is a browser behavior that we cannot fight. This isn't happening for most other usages of KeyboardDragListener because the keystate is cleared on blur. But blur doesn't bubble so we don't get the blur event when tabbing back from the child to the parent. I think the fix is to clear the keystate on focusout which does bubble.
The text was updated successfully, but these errors were encountered:
focusout works well and fixes the problem. @zepumph can you please check this change? I tested local test-server, usages of GrabDragInteraction and other usages of KeyboardDragListener. It seems pretty safe to me.
So if I understand correctly, this was occurring because of how the button was on a child node. Makes sense! Good and elegant fix. I can't think of any other spots where having a focusout there will be buggy or too powerful. Ready to close. Thank you
I noticed this while testing in ph-scale. If you shift tab back to the dropper node, it will move slowly as if shift is still pressed down. @pixelzoom fyi.
This is happening in ph-scale because the dropper button comes after the dropper node in the traversal order and the dropper button is a child of the dropper node.
KeyboardDragListener.keyState
.keyup
event for itSo shift is still in the keystate and the KeyboardDragListener is stuck in slow mode. I think the lack of
keyup
event for shift release after shift + tab is a browser behavior that we cannot fight. This isn't happening for most other usages of KeyboardDragListener because the keystate is cleared on blur. But blur doesn't bubble so we don't get the blur event when tabbing back from the child to the parent. I think the fix is to clear the keystate onfocusout
which does bubble.The text was updated successfully, but these errors were encountered: