Skip to content

Commit

Permalink
right click to pronounce
Browse files Browse the repository at this point in the history
  • Loading branch information
luyuhuang committed Apr 20, 2022
1 parent 789c3b2 commit 5a448f1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions templates/views/Danmaku.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,16 @@ export default {
}
},
clickWord() {
clickWord(e) {
if (this.disableClick) return;
this.activated = !this.activated;
switch (e.button) {
case 0:
this.activated = !this.activated;
break;
case 2:
this.pronounce();
break;
}
},
clickMemorized() {
Expand Down

0 comments on commit 5a448f1

Please sign in to comment.