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

Dragging doesn't work properly in a popup window #65

Open
smeehrrr opened this issue Jan 23, 2023 · 2 comments
Open

Dragging doesn't work properly in a popup window #65

smeehrrr opened this issue Jan 23, 2023 · 2 comments

Comments

@smeehrrr
Copy link

If you host the QuickPinchZoom component inside of a second window created with window.open, dragging won't work properly - the mouse tracking only works while the mouse is over the primary window. This is consistent with the code using the 'window' global instead of getting the window for the contained element via element.document.defaultView.

@retyui
Copy link
Owner

retyui commented Jan 24, 2023

@smeehrrr If you have an idea on how to solve it, please submit a PR!

@retyui
Copy link
Owner

retyui commented Jan 24, 2023

Moreover, you might try a different library: https://github.com/prc5/react-zoom-pan-pinch

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