Skip to content
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

PressedMixin sets :pressed to false when you reset the Capture #8179

Open
Takoooooo opened this issue May 24, 2022 · 0 comments
Open

PressedMixin sets :pressed to false when you reset the Capture #8179

Takoooooo opened this issue May 24, 2022 · 0 comments
Labels

Comments

@Takoooooo
Copy link
Contributor

Describe the bug
Problem is that if you will try to reset the Capture in PointerPressed method in one of the controls that's using PressedMixin you will face bugs. For example, when I was implementing this PR I needed to reset the Capture in DefaultMenuInteractionHandler.PointerPressed. And when I do that and press on some of the menuitems :pressed will be set to true for a moment and when set to :false because of Capture reset. I expect it not to set :pressed to false because I hold the left mouse button and the pointer is still over the pressed element. That's caused by PressedMixin.PointerCaptureLostEvent subscription.
image
Анимация

@Takoooooo Takoooooo added the bug label May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant