Skip to content

Commit

Permalink
#2201 Cannot read properties of null (reading 'x') when opening right… (
Browse files Browse the repository at this point in the history
#2202)

Signed-off-by: CTomlyn <[email protected]>
  • Loading branch information
tomlyn authored Oct 14, 2024
1 parent f7edcc2 commit 473cd99
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,8 @@ export default class SVGCanvasUtilsZoom {
// zoomAction and zoomEnd. It does not perform a zoom if newZoomTransform
// is the same as the current zoom transform.
zoomCanvasInvokeZoomBehavior(newZoomTransform, animateTime) {
if (isFinite(newZoomTransform.x) &&
if (newZoomTransform &&
isFinite(newZoomTransform.x) &&
isFinite(newZoomTransform.y) &&
isFinite(newZoomTransform.k) &&
this.zoomHasChanged(newZoomTransform)) {
Expand Down

0 comments on commit 473cd99

Please sign in to comment.