Skip to content

Commit

Permalink
Merge pull request #287 from seungdeok/main
Browse files Browse the repository at this point in the history
fix(image-tool): add PLAY_STOP event on PlayManager instance
  • Loading branch information
jaggerwang authored Nov 8, 2024
2 parents 2959792 + 0328e50 commit eee3441
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default function useBottom() {
onMounted(() => {
editor.on(EditorEvent.CURRENT_TRACK_CHANGE, onSelect);
editor.on(EditorEvent.ANNOTATE_ADD, onUpdate);
// editor.playManager.on(EditorEvent.PLAY_STOP, onFrameStop);
PlayManager.instance.on(EditorEvent.PLAY_STOP, onFrameStop);
// editor.cmdManager.addEventListener(EditorEvent.UNDO, onUpdate);
// editor.cmdManager.addEventListener(EditorEvent.REDO, onUpdate);
editor.hotkeyManager.bindSeriesFrameEvent();
Expand All @@ -154,7 +154,7 @@ export default function useBottom() {
onBeforeUnmount(() => {
editor.off(EditorEvent.CURRENT_TRACK_CHANGE, onSelect);
editor.off(EditorEvent.ANNOTATE_ADD, onUpdate);
// editor.playManager.off(EditorEvent.PLAY_STOP, onFrameStop);
PlayManager.instance.off(EditorEvent.PLAY_STOP, onFrameStop);
// editor.cmdManager.removeEventListener(EditorEvent.UNDO, onUpdate);
// editor.cmdManager.removeEventListener(EditorEvent.REDO, onUpdate);
});
Expand Down

0 comments on commit eee3441

Please sign in to comment.