From 2e9b37f49e6feb1d4fb01e4f1d740971d97af24c Mon Sep 17 00:00:00 2001 From: aditya1010-max Date: Wed, 25 Feb 2026 21:03:30 +0530 Subject: [PATCH] restore dblclick zoom on add-way behavior --- modules/behavior/add_way.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/behavior/add_way.js b/modules/behavior/add_way.js index 9479ca8da74..dbb22c6cc13 100644 --- a/modules/behavior/add_way.js +++ b/modules/behavior/add_way.js @@ -25,14 +25,11 @@ export function behaviorAddWay(context) { behavior.off = function(surface) { surface.call(draw.off); + context.map().dblclickZoomEnable(true); }; behavior.cancel = function() { - window.setTimeout(function() { - context.map().dblclickZoomEnable(true); - }, 1000); - context.enter(modeBrowse(context)); };