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
So I've written these helper functions to determine when dragging starts and ends for float drags (so I can implement undo/redo with the values from before starting the dragging and after the dragging stops)
Hello @onqtam, apologies for never answering this.
This has been solved as discussed in #1875 and other topics.
You can use IsItemDeactivated() or IsItemDeactivatedAfterEdit() added in 1.62, for the purpose you mention, and it works with tabbing out as well (the fix for tabbing out was part of 1.69),
So I've written these helper functions to determine when dragging starts and ends for float drags (so I can implement undo/redo with the values from before starting the dragging and after the dragging stops)
This works like a charm.
When I edit the float drag by entering a number (so not dragging) and I press
Return
-IsItemJustReleased()
again returnstrue
as expected.My problem is when I press
Tab
(to move the focus on the next field) - then this doesn't return true and I don't detect the change of the value.Does anyone have any idea what the problem might be?
The text was updated successfully, but these errors were encountered: