Prevent going into select mode when rotating, resizing or editing path nodes
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@837 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -1478,6 +1478,7 @@ function BatchCommand(text) {
|
|||||||
// then go to Select mode.
|
// then go to Select mode.
|
||||||
// WebKit returns <div> when the canvas is clicked, Firefox/Opera return <svg>
|
// WebKit returns <div> when the canvas is clicked, Firefox/Opera return <svg>
|
||||||
if ( (current_mode != "poly" || current_poly_pts.length == 0) &&
|
if ( (current_mode != "poly" || current_poly_pts.length == 0) &&
|
||||||
|
t.parentNode.id != "selectorParentGroup" &&
|
||||||
t.id != "svgcanvas" && t.id != "svgroot")
|
t.id != "svgcanvas" && t.id != "svgroot")
|
||||||
{
|
{
|
||||||
// switch into "select" mode if we've clicked on an element
|
// switch into "select" mode if we've clicked on an element
|
||||||
|
|||||||
Reference in New Issue
Block a user