From 9041ef96098d140d4c8f130c00e3036a4a404177 Mon Sep 17 00:00:00 2001 From: Luis Aguirre Date: Thu, 7 Feb 2013 18:12:36 +0000 Subject: [PATCH] Fixed: ext-panning removes last created element git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2338 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/extensions/ext-panning.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/editor/extensions/ext-panning.js b/editor/extensions/ext-panning.js index 09860365..89cf73a7 100644 --- a/editor/extensions/ext-panning.js +++ b/editor/extensions/ext-panning.js @@ -36,7 +36,11 @@ svgEditor.addExtension("ext-panning", function() { mouseUp: function(opts) { if(svgCanvas.getMode() == "ext-panning") { - svgEditor.setPanning(false); + svgEditor.setPanning(false); + return { + keep: false, + element: null + } } } };