mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 06:06:21 +00:00
Wheel jumps four lines
This commit is contained in:
@@ -1768,7 +1768,7 @@ _win_handle_page(const int * const ch)
|
|||||||
if (*ch == KEY_MOUSE) {
|
if (*ch == KEY_MOUSE) {
|
||||||
if (getmouse(&mouse_event) == OK) {
|
if (getmouse(&mouse_event) == OK) {
|
||||||
if (mouse_event.bstate & BUTTON2_PRESSED) { // mouse wheel down
|
if (mouse_event.bstate & BUTTON2_PRESSED) { // mouse wheel down
|
||||||
(*page_start)++;
|
*page_start += 4;
|
||||||
|
|
||||||
// only got half a screen, show full screen
|
// only got half a screen, show full screen
|
||||||
if ((y - (*page_start)) < page_space)
|
if ((y - (*page_start)) < page_space)
|
||||||
@@ -1781,7 +1781,7 @@ _win_handle_page(const int * const ch)
|
|||||||
_wins[_curr_prof_win].paged = 1;
|
_wins[_curr_prof_win].paged = 1;
|
||||||
dirty = TRUE;
|
dirty = TRUE;
|
||||||
} else if (mouse_event.bstate & BUTTON4_PRESSED) { // mouse wheel up
|
} else if (mouse_event.bstate & BUTTON4_PRESSED) { // mouse wheel up
|
||||||
(*page_start)--;
|
*page_start -= 4;
|
||||||
|
|
||||||
// went past beginning, show first page
|
// went past beginning, show first page
|
||||||
if (*page_start < 0)
|
if (*page_start < 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user