You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: make ItemEventsMixin get canvas dimensions dynamically
The mixin was caching canvas width/height in mounted() hook,
which caused drag boundaries to become incorrect when the canvas
size changed due to zoom operations (scale property changes).
This fix replaces the cached pageWidth/pageHeight with a
getCurrentPageDimensions() method that queries the canvas
dimensions on-demand, ensuring elements can move within the
correct boundaries regardless of zoom level.
Fixes draggable element boundaries when PDF zoom changes.
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
0 commit comments