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

Surface tracker - fix GUI bugs #1591

Merged
merged 6 commits into from
Aug 22, 2019

Conversation

romanroibu
Copy link
Contributor

Only consider how close the current pointer position is to the corner if it's not already being moved. If the corner is in the process of being moved, release it on mouse release no mater the distance to the pointer. This avoids situations where moving the corner very fast gets the UI into a state where the corner is stuck to the mouse pointer, but with an offset larger than the distance threshold, making it impossible to fixate.
…ick_menu_buttons and _on_click_marker_toggles

This avoids situations where, if the user moves a corner of surface A under the "edit" button of surface B, the corner is then impossible to move, since before corner clicks had lower precedence than menu button toggles.
@romanroibu romanroibu requested a review from papr August 20, 2019 16:48
Copy link
Contributor

@pfaion pfaion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just had a quick look over it as well:

pupil_src/shared_modules/surface_tracker/gui.py Outdated Show resolved Hide resolved
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.

3 participants