Updating ext-panning to use svgEditor.setPanning() instead of svgEditor.setPan()

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2335 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Luis Aguirre
2013-02-07 14:07:04 +00:00
parent 167b502b67
commit 3ad14a1e2a

View File

@@ -29,14 +29,14 @@ svgEditor.addExtension("ext-panning", function() {
}], }],
mouseDown: function() { mouseDown: function() {
if(svgCanvas.getMode() == "ext-panning") { if(svgCanvas.getMode() == "ext-panning") {
svgEditor.setPan(true); svgEditor.setPanning(true);
return {started: true}; return {started: true};
} }
}, },
mouseUp: function(opts) { mouseUp: function(opts) {
if(svgCanvas.getMode() == "ext-panning") { if(svgCanvas.getMode() == "ext-panning") {
svgEditor.setPan(false); svgEditor.setPanning(false);
} }
} }
}; };