Skip to content

Commit 02b3559

Browse files
committed
fix(EAV-555): make prompter animations compatible with bootstrap
this will help us avoid surprises in release53 (see: Sofie-Automation#1429)
1 parent 95d49a4 commit 02b3559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/webui/src/client/ui/Prompter/PrompterView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ export class PrompterViewContent extends React.Component<Translated<IProps & ITr
367367
this._lastAnimation = animate(window.scrollY, scrollToPosition, {
368368
duration: 0.4,
369369
ease: 'easeOut',
370-
onUpdate: (latest) => window.scrollTo(0, latest),
370+
onUpdate: (latest) => window.scrollTo({ left: 0, top: latest, behavior: 'instant' }),
371371
})
372372
}
373373
listAnchorPositions(startY: number, endY: number, sortDirection = 1): [number, Element][] {

0 commit comments

Comments
 (0)