Fix CameraTools zoom-out limitation
This commit is contained in:
@@ -90,7 +90,7 @@
|
|||||||
(camera.scroll.subtractPoint deltaMousePosition))
|
(camera.scroll.subtractPoint deltaMousePosition))
|
||||||
// Undo any zooming out that expands the viewport past its bounds
|
// Undo any zooming out that expands the viewport past its bounds
|
||||||
(when (> 0 deltaZoom)
|
(when (> 0 deltaZoom)
|
||||||
(unless (.containsPoint (getScrollBounds camera) camera.scroll)
|
(unless (.equals (camera.getViewRect) (.intersection (getScrollBounds camera) (camera.getViewRect)))
|
||||||
(-= camera.zoom deltaZoom)
|
(-= camera.zoom deltaZoom)
|
||||||
(set camera.scroll scrollPosition)))))
|
(set camera.scroll scrollPosition)))))
|
||||||
(otherwise null)))
|
(otherwise null)))
|
||||||
|
Reference in New Issue
Block a user