repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: d18d12881d8940fb551c35463be755f0f9e785f7: path_to: revision_to:
commit d18d12881d8940fb551c35463be755f0f9e785f7 Author: Marc LehmannDate: Fri Dec 14 02:27:54 2007 +0000 mikachu 2 diff --git a/src/command.C b/src/command.C
--- a/src/command.C
+++ b/src/command.C
@@ -1116,17 +1116,15 @@ rxvt_term::sel_scroll_cb (ev::timer &w, int revents)
void
rxvt_term::slip_wheel_cb (ev::timer &w, int revents)
{
- if (mouse_slip_wheel_speed == 0
- || mouse_slip_wheel_speed < 0 ? scr_page (DN, -mouse_slip_wheel_speed)
- : scr_page (UP, mouse_slip_wheel_speed))
- {
- if (view_start == top_row || view_start == 0)
- mouse_slip_wheel_speed = 0;
+ if (mouse_slip_wheel_speed < 0 ? scr_page (DN, -mouse_slip_wheel_speed)
+ : scr_page (UP, mouse_slip_wheel_speed))
+ want_refresh = 1;
- want_refresh = 1;
+ if (view_start == top_row || view_start == 0 || mouse_slip_wheel_speed == 0)
+ {
+ mouse_slip_wheel_speed = 0;
+ w.stop ();
}
- else
- w.stop ();
}
#endif
-----END OF PAGE-----