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

Thumbnail click point of reference breaks after zoom. #418

Open
menocsk27 opened this issue Feb 22, 2022 · 1 comment
Open

Thumbnail click point of reference breaks after zoom. #418

menocsk27 opened this issue Feb 22, 2022 · 1 comment

Comments

@menocsk27
Copy link

Bug report

Expected behaviour

Click should be related to the center or a corner of the thumbnail view box.

Actual behaviour

Click loses reference to the thumbnail view box

Steps to reproduce the behaviour

  1. Open the thumbnail demo https://bumbu.me/svg-pan-zoom/demo/thumbnailViewer.html
  2. Click somewhere on the thumbnail, the view box will snap its center to the mouse position (kinda, it already breaks towards the upper left corner)
  3. Zoom in for more clarity, example:
    image
  4. Clicking anywhere on the thumbnail shows that the mouse is not aligned to the view box anymore, it snaps to other places.

Gif version of these steps:
thumbnail viewer bug

Configuration

@Minniball
Copy link

I need the feature as well, can someone solve the issue?

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