BUG of horizontal scaling fixed
This commit is contained in:
1 parent
501e62012f
commit
1a05181968
2 files changed
+6
-3
No files matched your search
+1
-1
@@ -118,7 +118,7 @@
|
||||
breakpointsBar = newBreakpointsBar()
|
||||
breakpointsBar.initialize(thisObject.container, timeLineCoordinateSystem)
|
||||
|
||||
moveToUserPosition(thisObject.container, timeLineCoordinateSystem)
|
||||
moveToUserPosition(thisObject.container, timeLineCoordinateSystem, undefined, undefined, undefined, true)
|
||||
timePeriod = INITIAL_TIME_PERIOD
|
||||
datetime = NEW_SESSION_INITIAL_DATE
|
||||
|
||||
|
||||
+5
-2
@@ -100,10 +100,13 @@ function getUserPosition (timeLineCoordinateSystem) {
|
||||
return userPosition
|
||||
}
|
||||
|
||||
function moveToUserPosition (container, timeLineCoordinateSystem, ignoreX, ignoreY, center) {
|
||||
function moveToUserPosition (container, timeLineCoordinateSystem, ignoreX, ignoreY, center, considerZoom) {
|
||||
let userPosition = getUserPosition(timeLineCoordinateSystem)
|
||||
|
||||
viewPort.newZoomLevel(userPosition.zoom)
|
||||
if (considerZoom === true) {
|
||||
viewPort.newZoomLevel(userPosition.zoom)
|
||||
}
|
||||
|
||||
INITIAL_TIME_PERIOD = recalculatePeriod(userPosition.zoom)
|
||||
NEW_SESSION_INITIAL_DATE = new Date(userPosition.date)
|
||||
|
||||
|
||||
Reference in new issue
Block a user