… | |
… | |
1088 | |
1088 | |
1089 | #ifndef NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING |
1089 | #ifndef NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING |
1090 | void |
1090 | void |
1091 | rxvt_term::cont_scroll_cb (ev::timer &w, int revents) |
1091 | rxvt_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) |
1116 | void |
1116 | void |
1117 | rxvt_term::slip_wheel_cb (ev::timer &w, int revents) |
1117 | rxvt_term::slip_wheel_cb (ev::timer &w, int revents) |
1118 | { |
1118 | { |
1119 | if (mouse_slip_wheel_speed == 0 |
1119 | if (scr_changeview (view_start - mouse_slip_wheel_speed)) |
1120 | || mouse_slip_wheel_speed < 0 ? scr_page (DN, -mouse_slip_wheel_speed) |
1120 | want_refresh = 1; |
1121 | : scr_page (UP, mouse_slip_wheel_speed)) |
1121 | |
|
|
1122 | if (view_start == top_row || view_start == 0 || mouse_slip_wheel_speed == 0) |
1122 | { |
1123 | { |
1123 | if (view_start == top_row || view_start == 0) |
|
|
1124 | mouse_slip_wheel_speed = 0; |
1124 | mouse_slip_wheel_speed = 0; |
1125 | |
|
|
1126 | want_refresh = 1; |
|
|
1127 | } |
|
|
1128 | else |
|
|
1129 | w.stop (); |
1125 | w.stop (); |
|
|
1126 | } |
1130 | } |
1127 | } |
1131 | #endif |
1128 | #endif |
1132 | |
1129 | |
1133 | #if LINUX_YIELD_HACK |
1130 | #if LINUX_YIELD_HACK |
1134 | static struct event_handler |
1131 | static struct event_handler |