diff options
author | Andrew Dolgov <[email protected]> | 2008-05-19 17:16:51 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-05-19 17:16:51 +0100 |
commit | dee4a4091889db3c9e90d25901e22868ce83c02f (patch) | |
tree | 0b701576a504c27fc46afe58865381d9bccef262 /feedlist.js | |
parent | f3169d7ecc54462e7536bef380eba1f26fe837df (diff) |
add vertical resize grip (2)
Diffstat (limited to 'feedlist.js')
-rw-r--r-- | feedlist.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/feedlist.js b/feedlist.js index e4ea70cc5..f6556f246 100644 --- a/feedlist.js +++ b/feedlist.js @@ -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; } |