From 45389b6b94a0f6857aeada50a0e2621df2a1af43 Mon Sep 17 00:00:00 2001 From: Luis Aguirre Date: Thu, 7 Feb 2013 11:47:17 +0000 Subject: [PATCH] Create setPan at svg-editor.js to let move the document without pressing any key or mouse button. Usefull for future tablet/mobile edition git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2331 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index b5153b20..81716634 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -2055,6 +2055,10 @@ workarea.css('cursor', zoomInIcon); } }) + + Editor.setPan = function(active) { + svgCanvas.spaceKey = keypan = active; + } }());