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

FIx mouse clicks being accepted even when the mouse has been dragged substantially #851

Merged
merged 2 commits into from
Jun 23, 2017

Conversation

peppy
Copy link
Sponsor Member

@peppy peppy commented Jun 23, 2017

No description provided.

@Tom94
Copy link
Collaborator

Tom94 commented Jun 23, 2017

I think the PR title is a bit misleading. You can move the mouse a lot as long as your mouse up position is again close to where you had mouse down. That said, why don't we just let the click go through always (as long as the same thing is still hovered)? That would correspond to how regular buttons do it.

@peppy
Copy link
Sponsor Member Author

peppy commented Jun 23, 2017

another way we can do it is check if both the mousedown position and the current position are both still hovering.

use case is beatmap panels btw, where they have moved since mousedown

@peppy peppy changed the title FIx mouse clicks being accepted even when the mouse has moved substantially FIx mouse clicks being accepted even when the mouse has been dragged substantially Jun 23, 2017
@Tom94 Tom94 merged commit 97ff337 into ppy:master Jun 23, 2017
@peppy peppy deleted the fix-mouse-click-regression branch July 13, 2017 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants