ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/command.C
(Generate patch)

Comparing rxvt-unicode/src/command.C (file contents):
Revision 1.379 by root, Fri Dec 14 02:29:48 2007 UTC vs.
Revision 1.380 by root, Fri Dec 14 02:33:03 2007 UTC

1088 1088
1089#ifndef NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1089#ifndef NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING
1090void 1090void
1091rxvt_term::cont_scroll_cb (ev::timer &w, int revents) 1091rxvt_term::cont_scroll_cb (ev::timer &w, int revents)
1092{ 1092{
1093 if ((scrollbar_isUp() || scrollbar_isDn()) && 1093 if ((scrollbar_isUp () || scrollbar_isDn ())
1094 scr_page (scrollbar_isUp() ? UP : DN, 1)) 1094 && scr_page (scrollbar_isUp () ? UP : DN, 1))
1095 want_refresh = 1; 1095 want_refresh = 1;
1096 else 1096 else
1097 w.stop (); 1097 w.stop ();
1098} 1098}
1099#endif 1099#endif
1114 1114
1115#if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING) 1115#if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING)
1116void 1116void
1117rxvt_term::slip_wheel_cb (ev::timer &w, int revents) 1117rxvt_term::slip_wheel_cb (ev::timer &w, int revents)
1118{ 1118{
1119 if (scr_page (mouse_slip_wheel_speed < 0 ? DN : UP, abs (mouse_slip_wheel_speed))) 1119 if (scr_changeview (view_start - mouse_slip_wheel_speed))
1120 want_refresh = 1; 1120 want_refresh = 1;
1121 1121
1122 if (view_start == top_row || view_start == 0 || mouse_slip_wheel_speed == 0) 1122 if (view_start == top_row || view_start == 0 || mouse_slip_wheel_speed == 0)
1123 { 1123 {
1124 mouse_slip_wheel_speed = 0; 1124 mouse_slip_wheel_speed = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines