diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-row.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-row.vue
index c20f553b..5094f043 100644
--- a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-row.vue
+++ b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt-row.vue
@@ -3,19 +3,22 @@
-
-
-
-
+
+
+
+
+
+
diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.ts
index da9b3a1d..fe80b426 100644
--- a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.ts
+++ b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.ts
@@ -19,29 +19,27 @@ export default class Gantt extends Vue {
padY: number = 0;
get PadX() {
- let w = ((this.$refs.mainContainer as any)?.clientWidth ?? 0) / 2;
+ let w = ((this.$refs.mainContainer as any)?.clientWidth ?? 0) / 3;
if (this.follow && w && this.currentTime * this.ganttOptions.secondSize > w)
return -(this.currentTime * this.ganttOptions.secondSize - w);
return this.padX;
}
set PadX(value: number) {
- this.follow = false;
- this.padX = value;
+ if (!this.follow)
+ this.padX = value;
}
get PadY() {
- // if (this.follow) return -this.activeBlockYPosition;
return this.padY;
}
set PadY(value: number) {
- this.follow = false;
this.padY = value;
}
follow: boolean = false;
get canFollow() {
- if (this.follow && this.currentTime > 5)
+ if (this.follow && this.currentTime > 1)
return true;
return false;
}
@@ -83,7 +81,6 @@ export default class Gantt extends Vue {
startPan(event: MouseEvent | TouchEvent) {
this.lastPosition = this.getSvgCoords(event);
- this.follow = false;
}
stopPan() {
@@ -144,8 +141,11 @@ export default class Gantt extends Vue {
this.$forceUpdate()
}
- setFollow() {
- this.follow = true;
+ toggleFollow() {
+ this.follow = !this.follow;
+
+ if (this.follow)
+ this.padX = 0;
}
diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.vue
index a67ff174..fb3446da 100644
--- a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.vue
+++ b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.vue
@@ -78,8 +78,9 @@ svg.gantt {
fill: #f6f6f6;
}
-svg.gantt.follow g:not([style]) {
- transition: 2s transform linear;
+svg.gantt.follow g.gantt-header,
+svg.gantt.follow g.pad {
+ transition: 1s transform linear;
}
diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/timeline.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/timeline.vue
index f6e93fc1..1cc0e8d7 100644
--- a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/timeline.vue
+++ b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/timeline.vue
@@ -1,12 +1,16 @@
diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/processo.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/processo.vue
index dbc12365..d045aa37 100644
--- a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/processo.vue
+++ b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/processo.vue
@@ -35,7 +35,12 @@
-