Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Improve hover color behavior for selectors #799

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

Merged
merged 2 commits into from
Apr 15, 2025
Merged

Conversation

almarklein
Copy link
Collaborator

@almarklein almarklein commented Apr 15, 2025

Ref #781

I noticed that the color of the selector was flickering during motion, as the mouse enters and exits the object. This PR freezes the color while ._moving, keeping track of color changes in a dict, and then applying that dict when the moving is done.

Notice how the corner vertex becomes highlighted as the mouse is released after dragging the edge:

Screen.Recording.2025-04-15.at.11.29.22.mov

Copy link

github-actions bot commented Apr 15, 2025

📚 Docs preview built and uploaded! https://www.fastplotlib.org/ver/selector-color

@almarklein almarklein changed the title Improve hover color behavior Improve hover color behavior for selectors Apr 15, 2025
@kushalkolar
Copy link
Member

Thanks! I also want to refactor it to use the SelectorColorStates later

@kushalkolar kushalkolar merged commit 5e910cc into main Apr 15, 2025
52 checks passed
@kushalkolar kushalkolar deleted the selector-color branch April 15, 2025 14:19
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.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.