Skip to content

Commit

Permalink
Avoid double click for draw interaction (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
igoroctaviano authored May 9, 2024
1 parent 1579b41 commit 45a2ff8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1373,6 +1373,10 @@ class VolumeImageViewer {

let clickEvent = null
this[_map].on('dblclick', (event) => {
if (this[_interactions].draw !== undefined) {
return
}

clickEvent = 'dblclick'
this[_map].forEachFeatureAtPixel(
event.pixel,
Expand Down

0 comments on commit 45a2ff8

Please sign in to comment.