From fb02b297f11c6d7c2639ac80993eb1b6910977f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=BCl=C3=B6p=20Kov=C3=A1cs?= Date: Fri, 1 Jul 2022 14:01:03 +0200 Subject: [PATCH] Enable the preview of easing presets when the curveEditorPopover opens --- .../CurveEditorPopover/CurveEditorPopover.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveEditorPopover.tsx b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveEditorPopover.tsx index dc33707..1c3c65c 100644 --- a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveEditorPopover.tsx +++ b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveEditorPopover.tsx @@ -279,8 +279,13 @@ const CurveEditorPopover: React.VFC = (props) => { e.stopPropagation() } } - const onEasingOptionMouseOver = (item: {label: string; value: string}) => + const onEasingOptionMouseOver = (item: {label: string; value: string}) => { + // Set the `textInputMode` to `auto` if it was `init` before + // to enable the easing previews + if (textInputMode === TextInputMode.init) + setTextInputMode(TextInputMode.auto) setPreview(item.value) + } const onEasingOptionMouseOut = () => setPreview(null) const onSelectEasingOption = (item: {label: string; value: string}) => { setTempValue(tempTransaction, allConnections, item.value)