Skip to content

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

@github-actions
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.

3 participants