grabber: prevent text selection when resizing
This commit is contained in:
parent
a3f762aef7
commit
a2be67cd6b
|
@ -510,6 +510,7 @@ function mouse_down_handler(e) {
|
||||||
mouse_is_down = true;
|
mouse_is_down = true;
|
||||||
mouse_x = 0;
|
mouse_x = 0;
|
||||||
mouse_y = 0;
|
mouse_y = 0;
|
||||||
|
document.onselectstart = function() { return false; };
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("mouse_move_handler", e);
|
exception_error("mouse_move_handler", e);
|
||||||
|
@ -519,6 +520,7 @@ function mouse_down_handler(e) {
|
||||||
function mouse_up_handler(e) {
|
function mouse_up_handler(e) {
|
||||||
try {
|
try {
|
||||||
mouse_is_down = false;
|
mouse_is_down = false;
|
||||||
|
document.onselectstart = null;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("mouse_move_handler", e);
|
exception_error("mouse_move_handler", e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue