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

Board momentum after dragging #23

Open
optim-ally opened this issue Jul 10, 2024 · 5 comments
Open

Board momentum after dragging #23

optim-ally opened this issue Jul 10, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@optim-ally
Copy link

I noticed that board navigation has momentum while zooming in/out but not when moving side-to-side/up-and-down. Should the board also have translational momentum?

(By "momentum" I mean that it continues to move after the user has stopped interacting and gently slows down until it comes to a halt.)

@Naviary2
Copy link
Member

It does! But only when using WASD to move, not with the mouse.

@Naviary2 Naviary2 added the enhancement New feature or request label Jul 10, 2024
@Naviary2 Naviary2 changed the title Board momentum Board momentum after dragging Jul 13, 2024
@Entificationcurry
Copy link
Contributor

They sent me to work on it 🔥(that's how you know your suggestion will never occur, it took me 10 hours to make a glitchy version 😭)

@Entificationcurry
Copy link
Contributor

Well nevermind I finished it and it works pretty well

@Naviary2
Copy link
Member

This is now a feature on desktop! I won't close yet as it isn't applied to mobile devices that don't support a mouse, but an idea I have for getting it to work is:

Whenever you drag the board, whether it's by the mouse or by your finger, the boards position changes, right? Well if we just record the recent history of the board position, we can pull its velocity directly out of that! We constantly update its velocity while it's being dragged, and even though it's snapped to the mouse/finger, once you release it that velocity will take over!

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

No branches or pull requests

3 participants