zakodium-oss/pixelium

Synchronise zoom when applying filter

Opened this issue · 1 comments

Before both zoom were synchronized and this was a nice functionality. Is it possible to get back the before/after filter zoom synchronization?

This is in principle feasible.

You can listen to zoom changes on one image, and update the zoom of the other images on each event. However I foresee some issues:

  • During the "pan" action, the zoom callback is called only when the action is finished (after releasing the mouse). So it would not really be a "live" sync.
  • Currently zoom callback is triggered both when interacting with the image (mouse wheel, click-drag-release on image) and when the zoom level is sent programmatically with setZoom. This will create an infinite loop.

I'm creating an issue in react-roi about this.