]> git.wh0rd.org Git - tt-rss.git/commitdiff
add vertical resize grip (2)
authorAndrew Dolgov <fox@bah.spb.su>
Mon, 19 May 2008 16:16:51 +0000 (17:16 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Mon, 19 May 2008 16:16:51 +0000 (17:16 +0100)
feedlist.js

index e4ea70cc5b049f181b482c23588b4e5029e49696..f6556f2465eb9d9c0c4a4de3b0ba132fe140a993 100644 (file)
@@ -465,23 +465,26 @@ function init_collapsable_feedlist(theme) {
 
 var mouse_is_down = false;
 var mouse_y = 0;
+var mouse_x = 0;
 
 function mouse_move_handler(e) {
        try {
                var client_y;
+               var client_x;
 
                if (window.event) {
                        client_y = window.event.clientY;
+                       client_x = window.event.clientX;
                } else if (e) {
 
                }
 
                if (mouse_is_down) {
-                       if (mouse_y == 0) mouse_y = client_y;
 
-                       debug("moved delta: " + (mouse_y - client_y));
+                       if (mouse_y == 0) mouse_y = client_y;
+                       if (mouse_x == 0) mouse_x = client_x;
 
-                       resize_headlines(0, mouse_y - client_y);
+                       resize_headlines(mouse_x - client_x, mouse_y - client_y);
                        return false;
                }