Zoom out changes the time frame automatically

This commit is contained in:
Luis Fernando Molina committed 2020-02-09 18:17:48 +01:00
1 parent e8c54b17fb
commit 8ee3732b7e
3 files changed
+24 -6

No files matched your search

+1 -1
View File
@@ -391,7 +391,7 @@ function newTimeMachine () {
}
function panelPhysics () {
if (thisObject.container.frame.isInViewPort() && canvas.chartSpace.viewport.zoomTargetLevel > 10) {
if (thisObject.container.frame.isInViewPort() && canvas.chartSpace.viewport.zoomTargetLevel > ZOOM_OUT_THRESHOLD) {
canvas.panelsSpace.makeVisible(thisObject.payload.node.id, 'Layers Panel')
} else {
canvas.panelsSpace.makeInvisible(thisObject.payload.node.id, 'Layers Panel')