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

Move method removed? #68

Open
timhettler opened this issue Mar 24, 2023 · 3 comments
Open

Move method removed? #68

timhettler opened this issue Mar 24, 2023 · 3 comments

Comments

@timhettler
Copy link

In version 3.1.1 the ref object has a move method available on it. This allows us to implement panning via arrow keys. This method appears to have been removed in version 3.3.1. (zoomToZone doesn't seem to provide the same functionality.)

Is there a way to access the move method in 3.3.1, or a different way to enable keyboard navigation?

@sylvaindubus
Copy link
Owner

I've just set it back in 3.3.2, let me know if it works for you. 😉

@timhettler
Copy link
Author

timhettler commented Mar 27, 2023

It does, thank you! Although it seems that the typing has not been updated in react-prismazoom/dist/esm/types

I really appreciate how quickly you've responded; my team is very grateful for this library!

@sylvaindubus
Copy link
Owner

Thanks for pointing it out, it should be fixed now!

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

2 participants