robiness / stage_craft

MIT License
5 stars 1 forks source link

Make zoom button interactive #42

Closed passsy closed 1 month ago

passsy commented 1 month ago

https://github.com/user-attachments/assets/291bcdf4-3e7d-4fee-b576-335ab8d978dd

Intially I tried to zoom the InteractiveViewer using the _transformationController but that doesn't work when the viewer was zoomed before using the mouse. It loses the center position.

Now I do a fake pointer event to zoom. It works flawless, even without a postFrameCallback