Skip to content

Commit

Permalink
fix: prevent zoom on double-click while drawing (#328)
Browse files Browse the repository at this point in the history
* fix: fix double click on draw; close #256;

* chore: fix format
  • Loading branch information
A-Behairi authored Oct 18, 2023
1 parent df6eb64 commit a79cb2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions elements/drawtools/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export class EOxDrawTools extends LitElement {
this.#eoxMap.addDraw(this.layer, {
id: "drawInteraction",
type: "Polygon",
stopClick: true,
});
this.draw = /** @type {import("ol/interaction").Draw} */ (
/** @type {unknown} */ (this.#eoxMap.interactions["drawInteraction"])
Expand Down

0 comments on commit a79cb2a

Please sign in to comment.