Skip to content

Commit

Permalink
fix: prevent zoom on minimap double click
Browse files Browse the repository at this point in the history
  • Loading branch information
Ni55aN committed Aug 25, 2024
1 parent fd6350a commit 1cfa8bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/presets/minimap/components/Minimap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export class Minimap extends LitElement {
}

dblclick(event: MouseEvent) {
this.preventDefault(event)
if (!this.container) return
const box = this.container.getBoundingClientRect()
const x = (event.clientX - box.left) / (this.size * this.ratio)
Expand Down

0 comments on commit 1cfa8bc

Please sign in to comment.