Skip to content

Commit

Permalink
fix: collapse history when showing options
Browse files Browse the repository at this point in the history
  • Loading branch information
gudzpoz committed Oct 31, 2023
1 parent 213736b commit af6c3c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/components/StoryScene.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ function setDownPosition(event: MouseEvent) {
clickY = event.clientY;
}
function emitClick(event: MouseEvent) {
if (props.options.length > 0) {
return;
}
if ((event.target as HTMLElement).nodeName === 'BUTTON') {
return;
}
Expand Down
3 changes: 3 additions & 0 deletions src/components/StoryTeller.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ function nextLine(option?: number) {
showingHistory.value = undefined;
return;
}
if (option === undefined && options.value.length > 0) {
return;
}
let l = story.next(option);
while (l) {
Expand Down

0 comments on commit af6c3c7

Please sign in to comment.