From 5c4461432c290ad4863fd7dc4107121db59b298c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 19 Jun 2009 11:24:12 +0400 Subject: [PATCH] mouse handler fix for IE8 (closes #241) --- feedlist.js | 6 +++--- prefs.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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); } } -- 2.39.5