Add timeline system integration in resize handler
- Integrated the `timelineSystem` function into the resize handler of the timeline controller, ensuring that timeline updates are processed during window resizing events. - This enhancement improves the responsiveness of the timeline component, maintaining accurate visual representation as the viewport changes.
This commit is contained in:
parent
6e51eb878e
commit
d720a8fa00
@ -12,6 +12,7 @@
|
||||
import { assert, clamp } from '@/utils';
|
||||
import { createPointer } from './pointer';
|
||||
import { TimelineSurface } from './surface';
|
||||
import { timelineSystem } from './timeline';
|
||||
import {
|
||||
getResolution,
|
||||
getScrollX,
|
||||
@ -82,6 +83,7 @@ export function createTimelineController(world: World) {
|
||||
const resize = (): void => {
|
||||
applyResize();
|
||||
withScene((scene) => updateTimelineTransform(world, scene));
|
||||
timelineSystem(world);
|
||||
};
|
||||
|
||||
const observer = new ResizeObserver(resize);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user