File tree 1 file changed +4
-1
lines changed
packages/app-frontend/src/features/timeline 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
10
10
watch ,
11
11
watchEffect ,
12
12
defineComponent ,
13
+ computed ,
13
14
} from ' @vue/composition-api'
14
15
import { SharedData , isMac } from ' @vue-devtools/shared-utils'
15
16
import {
@@ -372,6 +373,8 @@ export default defineComponent({
372
373
resetLayers ()
373
374
})
374
375
376
+ const totalLayersHeight = computed (() => layers .value .reduce ((sum , layer ) => sum + layer .height , 0 ))
377
+
375
378
// Layer hover
376
379
377
380
let layerHoverEffect: PIXI .Graphics
@@ -1313,7 +1316,7 @@ export default defineComponent({
1313
1316
endTime .value = start + size
1314
1317
1315
1318
// Vertical
1316
- layersScroller .scrollTop = startDragScrollTop + deltaY
1319
+ layersScroller .scrollTop = Math . min ( totalLayersHeight . value , startDragScrollTop + deltaY )
1317
1320
}
1318
1321
}
1319
1322
You can’t perform that action at this time.
0 commit comments