svg-pan-zoom icon indicating copy to clipboard operation
svg-pan-zoom copied to clipboard

Thumbnail click point of reference breaks after zoom.

Open menocsk27 opened this issue 3 years ago • 1 comments

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

  • svg-pan-zoom version: demo
  • Browser(s): chrome
  • Operating system(s): win10
  • A relevant example URL: https://bumbu.me/svg-pan-zoom/demo/thumbnailViewer.html

menocsk27 avatar Feb 22 '22 15:02 menocsk27

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

Minniball avatar Apr 18 '22 17:04 Minniball