Fixed bug where 'move' cursor would appear outside the canvas

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@474 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2009-08-26 18:04:49 +00:00
parent 328261b9e3
commit 6468b758ef
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ function svg_edit_setup() {
var setSelectMode = function() {
$('.tool_button_current').removeClass('tool_button_current').addClass('tool_button');
$('#tool_select').addClass('tool_button_current');
$('#styleoverrides').text('*{cursor:move;pointer-events:all} svg{cursor:default}');
$('#styleoverrides').text('#svgcanvas svg *{cursor:move;pointer-events:all} #svgcanvas svg{cursor:default}');
svgCanvas.setMode('select');
};
@ -365,7 +365,7 @@ function svg_edit_setup() {
var clickSelect = function() {
if (toolButtonClick('#tool_select')) {
svgCanvas.setMode('select');
$('#styleoverrides').text('*{cursor:move;pointer-events:all} svg{cursor:default}');
$('#styleoverrides').text('#svgcanvas svg *{cursor:move;pointer-events:all}, #svgcanvas svg{cursor:default}');
}
};