Increase timeline margin after last keyframe

Add fallback for folded panels on mobile
This commit is contained in:
JannisX11 2023-11-27 23:47:28 +01:00
parent 278da5bca8
commit 640238ae76
2 changed files with 2 additions and 1 deletions

View File

@ -499,7 +499,7 @@ const Timeline = {
Timeline.keyframes.forEach((kf) => {
max_length = Math.max(max_length, kf.time)
})
max_length = Math.max(max_length, Timeline.time) + 50/Timeline.vue._data.size
max_length = Math.max(max_length, Timeline.time) + width/2/Timeline.vue._data.size
return max_length;
},
updateSize() {

View File

@ -283,6 +283,7 @@ class Panel extends EventSystem {
let diff = Blockbench.isLandscape ? e1.clientX - e2.clientX : e1.clientY - e2.clientY;
if (!started && Math.abs(diff) > 4) {
started = true;
if (this.folded) this.fold();
}
if (!started) return;