From 2962f808217adad848959574d0f68cda6af74897 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Wed, 15 Nov 2017 16:58:49 -0500 Subject: [PATCH] Perform eased zoom to avoid Firefox crash (and it looks nice too) (closes #4421) --- modules/ui/notice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/notice.js b/modules/ui/notice.js index 86353a968..9e35a610f 100644 --- a/modules/ui/notice.js +++ b/modules/ui/notice.js @@ -17,7 +17,7 @@ export function uiNotice(context) { .append('button') .attr('class', 'zoom-to notice fillD') .on('click', function() { - context.map().zoom(context.minEditableZoom()); + context.map().zoomEase(context.minEditableZoom()); }) .on('wheel', function() { // let wheel events pass through #4482 var e2 = new WheelEvent(d3_event.type, d3_event);