Fix step size for clicks on scrollbar arrow icons.

svn path=/trunk/netsurf/; revision=12669
This commit is contained in:
Michael Drake 2011-08-25 18:29:21 +00:00
parent bbf77c54b9
commit 0794f8c4dd

View File

@ -610,9 +610,9 @@ const char *scrollbar_mouse_action(struct scrollbar *s,
status = messages_get(h ? "ScrollLeft" : "ScrollUp");
if (but1)
scrollbar_set(s, s->bar_pos - SCROLLBAR_WIDTH, true);
scrollbar_set(s, s->offset - SCROLLBAR_WIDTH, false);
else if (but2)
scrollbar_set(s, s->bar_pos + SCROLLBAR_WIDTH, true);
scrollbar_set(s, s->offset + SCROLLBAR_WIDTH, false);
} else if (val < SCROLLBAR_WIDTH + s->bar_pos) {
/* well between left/up arrow and bar */
@ -630,9 +630,9 @@ const char *scrollbar_mouse_action(struct scrollbar *s,
status = messages_get(h ? "ScrollRight" : "ScrollDown");
if (but1)
scrollbar_set(s, s->bar_pos + SCROLLBAR_WIDTH, true);
scrollbar_set(s, s->offset + SCROLLBAR_WIDTH, false);
else if (but2)
scrollbar_set(s, s->bar_pos - SCROLLBAR_WIDTH, true);
scrollbar_set(s, s->offset - SCROLLBAR_WIDTH, false);
} else if (val > SCROLLBAR_WIDTH + s->bar_pos +
s->bar_len) {