mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-02-17 16:20:13 +08:00
Increase timeline margin after last keyframe
Add fallback for folded panels on mobile
This commit is contained in:
parent
278da5bca8
commit
640238ae76
@ -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() {
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user