Skip to content

Refactor selector drag behavior #800

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 3 commits into from
Apr 16, 2025
Merged

Refactor selector drag behavior #800

merged 3 commits into from
Apr 16, 2025

Conversation

almarklein
Copy link
Collaborator

@almarklein almarklein commented Apr 15, 2025

Ref #781

Refactor to move the selectors based on their original value, instead of using incremental deltas. This makes it much easier to implement natural behavior when the movement is clipped by the limits.

One question: What's up with the PolygonSelector, I see no example of it, and it also does not implement _move_graphic.

Copy link

github-actions bot commented Apr 15, 2025

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

@kushalkolar
Copy link
Member

The polygon selector module in there was a prototype, it probably has to be rewritten.

Copy link
Member

@kushalkolar kushalkolar left a comment

Choose a reason for hiding this comment

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

this is great thanks!

@kushalkolar kushalkolar merged commit c95ed34 into main Apr 16, 2025
52 checks passed
@almarklein almarklein deleted the selector-move branch April 17, 2025 06:56
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy