Skip to content

Commit

Permalink
fix(timeline): better redraw on resize
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Nov 29, 2021
1 parent d3763c7 commit 08b3381
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/app-frontend/src/features/timeline/TimelineView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1227,12 +1227,14 @@ export default defineComponent({
app.view.style.opacity = '0'
// @ts-expect-error PIXI type is missing queueResize
app.queueResize()
mainRenderTexture?.resize(app.view.width, app.view.height)
queueEventsUpdate()
drawLayerBackgroundEffects()
drawTimeCursor()
drawTimeGrid()
draw()
requestAnimationFrame(() => {
mainRenderTexture?.resize(app.view.width, app.view.height)
queueEventsUpdate()
drawLayerBackgroundEffects()
drawTimeCursor()
drawTimeGrid()
draw()
})
}
// Events
Expand Down

0 comments on commit 08b3381

Please sign in to comment.