From: Andrew Dolgov Date: Tue, 20 May 2008 05:18:00 +0000 (+0100) Subject: grabber: prevent text selection when resizing X-Git-Tag: 1.2.23-final~30 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a2be67cd6b932bd5fc8b58e109966ff126e982c0;p=tt-rss.git grabber: prevent text selection when resizing --- diff --git a/feedlist.js b/feedlist.js index f7699efb..bdd0d778 100644 --- a/feedlist.js +++ b/feedlist.js @@ -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); }