mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
fix: disable double-click on heightmap edit
This commit is contained in:
parent
b66874ddda
commit
ea27276558
6 changed files with 16 additions and 11 deletions
|
|
@ -8,6 +8,7 @@ function restoreDefaultEvents() {
|
|||
svg.call(zoom);
|
||||
viewbox.style("cursor", "default").on(".drag", null).on("click", clicked).on("touchmove mousemove", onMouseMove);
|
||||
legend.call(d3.drag().on("start", dragLegendBox));
|
||||
svg.call(zoom);
|
||||
}
|
||||
|
||||
// handle viewbox click
|
||||
|
|
|
|||
|
|
@ -112,7 +112,9 @@ function editHeightmap(options) {
|
|||
layersPreset.value = "heightmap";
|
||||
layersPreset.disabled = true;
|
||||
mockHeightmap();
|
||||
|
||||
viewbox.on("touchmove mousemove", moveCursor);
|
||||
svg.on("dblclick.zoom", null);
|
||||
|
||||
if (tool === "templateEditor") openTemplateEditor();
|
||||
else if (tool === "imageConverter") openImageConverter();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue