mouse handler fix for IE8 (closes #241)

master
Andrew Dolgov 16 years ago
parent 95f67d2ebc
commit 5c4461432c

@ -621,7 +621,7 @@ function mouse_down_handler(e) {
try {
/* do not prevent right click */
if (e.button && e.button == 2) return;
if (e && e.button && e.button == 2) return;
if (resize_enabled) {
mouse_is_down = true;
@ -637,7 +637,7 @@ function mouse_down_handler(e) {
}
} catch (e) {
exception_error("mouse_move_handler", e);
exception_error("mouse_down_handler", e);
}
}
@ -656,7 +656,7 @@ function mouse_up_handler(e) {
}
} catch (e) {
exception_error("mouse_move_handler", e);
exception_error("mouse_up_handler", e);
}
}

@ -2103,7 +2103,7 @@ function mouse_down_handler(e) {
try {
/* do not prevent right click */
if (e.button && e.button == 2) return;
if (e && e.button && e.button == 2) return;
if (selection_disabled) {
document.onselectstart = function() { return false; };
@ -2111,7 +2111,7 @@ function mouse_down_handler(e) {
}
} catch (e) {
exception_error("mouse_move_handler", e);
exception_error("mouse_down_handler", e);
}
}
@ -2128,7 +2128,7 @@ function mouse_up_handler(e) {
}
} catch (e) {
exception_error("mouse_move_handler", e);
exception_error("mouse_up_handler", e);
}
}

Loading…
Cancel
Save