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

Setting the panning key is not working #24

Open
remcob-engineero opened this issue Aug 21, 2023 · 1 comment
Open

Setting the panning key is not working #24

remcob-engineero opened this issue Aug 21, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@remcob-engineero
Copy link

When setting the panning key, you can't pan the canvas with the provided key. Panning is only possible when using the panning key and the space bar at the same time. The reason of this bug is at PanningGrid.cs:334.

You should remove Keyboard.IsKeyDown(Key.Space). You could add Keyboard.IsKeyDown(_parent.PanningKey) as replacement, but _parent.IsPanning already checks if the key is pressed.

@mircea21S
Copy link
Owner

Hi!

That's a known issue that was kinda ignored and caused by a pretty much bad design that I started with.

At the moment, there's an existing branch that I am working on called feature/refector-states-and-gestures. Basically, I am refactoring and redesigning a pretty big part of the library which covers this. You can take a look at that branch as I don't have a public board that shows the tracking of what that branch includes and all the changes I am preparing, but a v3.0.0 version comes with nice stuff, soon I hope 😅.

If this is an urgent issue, I would suggest that you would solve this in your fork/clone or try to test it like that and then maybe create a PR and I will merge it and release an update.

Thank you.

@mircea21S mircea21S added the bug Something isn't working label Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
2 participants