Deleting local storage works, almost
This commit is contained in:
1 parent
349a943222
commit
566c13ba9d
5 files changed
+12
-4
No files matched your search
@@ -139,4 +139,5 @@ function recalculatePeriod (zoomLevel) {
|
||||
if (zoomLevel <= -28) {
|
||||
return ONE_DAY_IN_MILISECONDS
|
||||
}
|
||||
return ONE_DAY_IN_MILISECONDS
|
||||
}
|
||||
+1
-1
@@ -35,7 +35,7 @@ UI_FONT = {
|
||||
SECONDARY: "Source Code Pro"
|
||||
};
|
||||
|
||||
FONT_ASPECT_RATIO = 0.55;
|
||||
FONT_ASPECT_RATIO = 0.45;
|
||||
const MIN_ZOOM_LEVEL = -28.25
|
||||
|
||||
const GET_CONTAINER_PURPOSE = {
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ function newTimeScale () {
|
||||
lenghtPercentage: undefined
|
||||
}
|
||||
|
||||
const LENGHT_PERCENTAGE_DEFAULT_VALUE = 50
|
||||
const LENGHT_PERCENTAGE_DEFAULT_VALUE = 5
|
||||
const STEP_SIZE = 5
|
||||
const MIN_HEIGHT = 50
|
||||
|
||||
|
||||
+1
-1
@@ -118,7 +118,7 @@
|
||||
breakpointsBar = newBreakpointsBar()
|
||||
breakpointsBar.initialize(thisObject.container, timeLineCoordinateSystem)
|
||||
|
||||
moveToUserPosition(thisObject.container, timeLineCoordinateSystem, undefined, undefined, undefined, true)
|
||||
// moveToUserPosition(thisObject.container, timeLineCoordinateSystem, undefined, undefined, undefined, true)
|
||||
timePeriod = INITIAL_TIME_PERIOD
|
||||
datetime = NEW_SESSION_INITIAL_DATE
|
||||
|
||||
|
||||
+8
-1
@@ -420,8 +420,15 @@ function newViewPort () {
|
||||
objectStorage = JSON.parse(objectStorageString)
|
||||
offset = objectStorage.offset
|
||||
thisObject.zoomLevel = objectStorage.zoomLevel
|
||||
|
||||
thisObject.zoomTargetLevel = objectStorage.zoomLevel
|
||||
INITIAL_TIME_PERIOD = recalculatePeriod(thisObject.zoomLevel)
|
||||
} else { // Setting default values for first session
|
||||
offset = {
|
||||
x: 0,
|
||||
y: 0
|
||||
}
|
||||
thisObject.zoomLevel = MIN_ZOOM_LEVEL
|
||||
thisObject.zoomTargetLevel = MIN_ZOOM_LEVEL
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user