Skip to content

Commit

Permalink
fix(images): prevent double click if zooming is forbidden
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
  • Loading branch information
skjnldsv committed Mar 7, 2024
1 parent ea33583 commit aa50b25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Images.vue
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,10 @@ export default {
}
},
onDblclick() {
if (!this.canZoom) {
return
}

if (this.zoomRatio > 1) {
this.resetZoom()
} else {
Expand Down

0 comments on commit aa50b25

Please sign in to comment.