Fixed rest of Issue 782: Text editing is buggy (IE9)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1999 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
d63a9ac760
commit
4c4db71652
|
@ -3766,13 +3766,12 @@ var textActions = canvas.textActions = function() {
|
||||||
// textActions.toSelectMode(true);
|
// textActions.toSelectMode(true);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// For some reason points in IE are off by 1
|
if(
|
||||||
if(svgedit.browser.isIE()) {
|
evt.target !== curtext
|
||||||
mouse_x++;
|
&& mouse_x < last_x + 2
|
||||||
mouse_y++;
|
&& mouse_x > last_x - 2
|
||||||
}
|
&& mouse_y < last_y + 2
|
||||||
|
&& mouse_y > last_y - 2) {
|
||||||
if(last_x === mouse_x && last_y === mouse_y && evt.target !== curtext) {
|
|
||||||
|
|
||||||
textActions.toSelectMode(true);
|
textActions.toSelectMode(true);
|
||||||
}
|
}
|
||||||
|
@ -3883,6 +3882,9 @@ var textActions = canvas.textActions = function() {
|
||||||
var offset = canvas.contentW * current_zoom;
|
var offset = canvas.contentW * current_zoom;
|
||||||
start.x -= offset;
|
start.x -= offset;
|
||||||
end.x -= offset;
|
end.x -= offset;
|
||||||
|
|
||||||
|
start.x /= current_zoom;
|
||||||
|
end.x /= current_zoom;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get a "bbox" equivalent for each character. Uses the
|
// Get a "bbox" equivalent for each character. Uses the
|
||||||
|
|
Loading…
Reference in New Issue