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

additional mouse_enter and mouse_exit functions? #61

Open
ben-wes opened this issue Oct 15, 2024 · 0 comments
Open

additional mouse_enter and mouse_exit functions? #61

ben-wes opened this issue Oct 15, 2024 · 0 comments

Comments

@ben-wes
Copy link
Contributor

ben-wes commented Oct 15, 2024

the mouse_move(x, y) callback can be used to create hover feedback in pdlua GUI objects.

unfortunately, this has one major restriction though: the position is only reported on changes inside the object box and these changes are not necessarily reporting continuous coordinates. so there's no way to reliably determine whether the mouse has left the object area (or "crossed a border").

one option to deal with this might be additional functions. i learnt that @timothyschoen had these implemented some time ago and then removed them again since they seemed slightly hacky for vanilla. maybe they could be reconsidered though since they would allow for some additional interaction patterns.

one question in this context is whether mouse_enter and mouse_exit could also be achieved easily with purr data?

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

No branches or pull requests

1 participant