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
A-UIGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorC-FeatureA new feature, making something new possible
It still reads "Pressed" until the mouse is released, regardless of where the cursor is at the time of release
What were you expecting?
I would expect the button to stop being considered pressed when moving out of the bounds of the button.
At the very least I would expect it to stop being considered pressed when exiting the window.
Additional information
Now, that being said, I'm pretty sure we do want to keep the behaviour for buttons or other interactable UI elements to "capture mouse", but there should also be a way to set up an interactable element so that it considers moving out of the bounds as a "release"
Perhaps something like this to go with the Interaction enum? (Not very attached to the name)
pubenumCapturePolicy{Capture,NotCapture}
The text was updated successfully, but these errors were encountered:
Weibye
added
C-Bug
An unexpected or incorrect behavior
A-UI
Graphical user interfaces, styles, layouts, and widgets
C-Feature
A new feature, making something new possible
labels
Jan 16, 2023
A-UIGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorC-FeatureA new feature, making something new possible
Bevy version
Current main, 2f4cf76
What you did
What were you expecting?
I would expect the button to stop being considered pressed when moving out of the bounds of the button.
At the very least I would expect it to stop being considered pressed when exiting the window.
Additional information
Now, that being said, I'm pretty sure we do want to keep the behaviour for buttons or other interactable UI elements to "capture mouse", but there should also be a way to set up an interactable element so that it considers moving out of the bounds as a "release"
Perhaps something like this to go with the
Interaction
enum? (Not very attached to the name)The text was updated successfully, but these errors were encountered: