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

Register file hover and drop events for areas #4655

Open
s-nie opened this issue Jun 13, 2024 · 0 comments
Open

Register file hover and drop events for areas #4655

s-nie opened this issue Jun 13, 2024 · 0 comments

Comments

@s-nie
Copy link
Contributor

s-nie commented Jun 13, 2024

A convenient feature would be to only allow dropping files in a specific region in the window. As I understand it, this is currently not possible as the pointer position is None while hovering and right after dropping a file. Maybe this is a winit limitation though.

Describe the solution you'd like

Having access to the pointer position while hovering would be enough. Even nicer would be to store the hovered and dropped files in an area's response.

Describe alternatives you've considered

Keeping track of which files have been hovered right before releasing, but this involves keeping track of the information over multiple frames and quickly becomes messy.

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