From: Andrew Dolgov Date: Fri, 19 Jun 2009 07:24:12 +0000 (+0400) Subject: mouse handler fix for IE8 (closes #241) X-Git-Tag: 1.3.4~55 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5c4461432c290ad4863fd7dc4107121db59b298c;p=tt-rss.git mouse handler fix for IE8 (closes #241) --- diff --git a/feedlist.js b/feedlist.js index 93861bbd..7de5559b 100644 --- a/feedlist.js +++ b/feedlist.js @@ -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); } } diff --git a/prefs.js b/prefs.js index fc7d1db3..c39ed1fc 100644 --- a/prefs.js +++ b/prefs.js @@ -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); } }