1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 01:55:55 +00:00

add vertical resize grip

This commit is contained in:
Andrew Dolgov
2008-05-19 17:13:22 +01:00
parent 08827aafd7
commit f3169d7ecc
4 changed files with 77 additions and 4 deletions

View File

@@ -328,6 +328,9 @@ function feedlist_init() {
hideOrShowFeeds(document, getInitParam("hide_read_feeds") == 1);
document.onkeydown = hotkey_handler;
document.onmousemove = mouse_move_handler;
document.onmousedown = mouse_down_handler;
document.onmouseup = mouse_up_handler;
setTimeout("timeout()", 0);
/* debug("about to remove splash, OMG!");
@@ -460,4 +463,49 @@ function init_collapsable_feedlist(theme) {
}
var mouse_is_down = false;
var mouse_y = 0;
function mouse_move_handler(e) {
try {
var client_y;
if (window.event) {
client_y = window.event.clientY;
} else if (e) {
}
if (mouse_is_down) {
if (mouse_y == 0) mouse_y = client_y;
debug("moved delta: " + (mouse_y - client_y));
resize_headlines(0, mouse_y - client_y);
return false;
}
} catch (e) {
exception_error("mouse_move_handler", e);
}
}
function mouse_down_handler(e) {
try {
mouse_is_down = true;
} catch (e) {
exception_error("mouse_move_handler", e);
}
}
function mouse_up_handler(e) {
try {
mouse_is_down = false;
} catch (e) {
exception_error("mouse_move_handler", e);
}
}