summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-04 07:59:08 -0300
committerWerner Almesberger <werner@almesberger.net>2016-09-04 07:59:08 -0300
commit93f3b84d812901922e400052f6ae867a613825db (patch)
tree5d856ef2db37e7e219ed9145a2175c741e7abc69 /gui
parentba7b2c25799e9615705e146f18a74a0389108e6c (diff)
downloadeeshow-93f3b84d812901922e400052f6ae867a613825db.tar.gz
eeshow-93f3b84d812901922e400052f6ae867a613825db.tar.bz2
eeshow-93f3b84d812901922e400052f6ae867a613825db.zip
gui/history.c (hover_history): prevent "migration" at top and bottom
Reported by Joerg.
Diffstat (limited to 'gui')
-rw-r--r--gui/history.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/history.c b/gui/history.c
index 72e0276..6b3c9fe 100644
--- a/gui/history.c
+++ b/gui/history.c
@@ -264,7 +264,9 @@ static bool hover_history(void *user, bool on, int dx, int dy)
if (dy < 0 && on)
gui->hist_y_offset -= after - before;
- if (dy > 0 && !on)
+ if (dy < 0 && !on && !h->age)
+ gui->hist_y_offset -= after - before;
+ if (dy > 0 && !on && h->next)
gui->hist_y_offset -= after - before;
redraw(gui);