grabber: prevent text selection when resizing

This commit is contained in:
Andrew Dolgov 2008-05-20 06:18:00 +01:00
parent a3f762aef7
commit a2be67cd6b
1 changed files with 2 additions and 0 deletions

View File

@ -510,6 +510,7 @@ function mouse_down_handler(e) {
mouse_is_down = true;
mouse_x = 0;
mouse_y = 0;
document.onselectstart = function() { return false; };
}
} catch (e) {
exception_error("mouse_move_handler", e);
@ -519,6 +520,7 @@ function mouse_down_handler(e) {
function mouse_up_handler(e) {
try {
mouse_is_down = false;
document.onselectstart = null;
} catch (e) {
exception_error("mouse_move_handler", e);
}