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

UI DragData - retain drag position relative to mouse cursor #830

Open
davesmith00000 opened this issue Feb 1, 2025 · 0 comments
Open

UI DragData - retain drag position relative to mouse cursor #830

davesmith00000 opened this issue Feb 1, 2025 · 0 comments
Labels

Comments

@davesmith00000
Copy link
Member

Another hangover of building this in the Roguelike starterkit with it's chunky grid:

When dragging a button on a 1:1 pixel scale, you either want the object to snap to the mouse position, as it currently does, or you want the drag to happen relative to the mouse position at the start of the drag. For example: If you have a button that is 20x20, and you start dragging from the pixel within the button at 10x10, then the button should remain positioned at mouse position - 10,10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant