Skip to content

Commit eee3441

Browse files
authored
Merge pull request #287 from seungdeok/main
fix(image-tool): add PLAY_STOP event on PlayManager instance
2 parents 2959792 + 0328e50 commit eee3441

File tree

1 file changed

+2
-2
lines changed
  • frontend/image-tool/src/package/image-ui/components/FrameLine

1 file changed

+2
-2
lines changed

frontend/image-tool/src/package/image-ui/components/FrameLine/useBottom.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export default function useBottom() {
141141
onMounted(() => {
142142
editor.on(EditorEvent.CURRENT_TRACK_CHANGE, onSelect);
143143
editor.on(EditorEvent.ANNOTATE_ADD, onUpdate);
144-
// editor.playManager.on(EditorEvent.PLAY_STOP, onFrameStop);
144+
PlayManager.instance.on(EditorEvent.PLAY_STOP, onFrameStop);
145145
// editor.cmdManager.addEventListener(EditorEvent.UNDO, onUpdate);
146146
// editor.cmdManager.addEventListener(EditorEvent.REDO, onUpdate);
147147
editor.hotkeyManager.bindSeriesFrameEvent();
@@ -154,7 +154,7 @@ export default function useBottom() {
154154
onBeforeUnmount(() => {
155155
editor.off(EditorEvent.CURRENT_TRACK_CHANGE, onSelect);
156156
editor.off(EditorEvent.ANNOTATE_ADD, onUpdate);
157-
// editor.playManager.off(EditorEvent.PLAY_STOP, onFrameStop);
157+
PlayManager.instance.off(EditorEvent.PLAY_STOP, onFrameStop);
158158
// editor.cmdManager.removeEventListener(EditorEvent.UNDO, onUpdate);
159159
// editor.cmdManager.removeEventListener(EditorEvent.REDO, onUpdate);
160160
});

0 commit comments

Comments
 (0)