about summary refs log tree commit diff stats
path: root/src/windows.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-11-20 02:01:55 +0000
committerJames Booth <boothj5@gmail.com>2012-11-20 02:01:55 +0000
commitdda57fcd8eb393369cee1665e725bbefd68e7ea6 (patch)
tree018e3df51580a161c5456a74693974959ee904d8 /src/windows.c
parent1711a426f84b59f6f0507401f857d2faf09ff622 (diff)
downloadprofani-tty-dda57fcd8eb393369cee1665e725bbefd68e7ea6.tar.gz
Wheel jumps four lines
Diffstat (limited to 'src/windows.c')
-rw-r--r--src/windows.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/windows.c b/src/windows.c
index e4718b5e..8cf3adc7 100644
--- a/src/windows.c
+++ b/src/windows.c
@@ -1768,7 +1768,7 @@ _win_handle_page(const int * const ch)
     if (*ch == KEY_MOUSE) {
         if (getmouse(&mouse_event) == OK) {
             if (mouse_event.bstate & BUTTON2_PRESSED) { // mouse wheel down
-                (*page_start)++;
+                *page_start += 4;
 
                 // only got half a screen, show full screen
                 if ((y - (*page_start)) < page_space)
@@ -1781,7 +1781,7 @@ _win_handle_page(const int * const ch)
                 _wins[_curr_prof_win].paged = 1;
                 dirty = TRUE;
             } else if (mouse_event.bstate & BUTTON4_PRESSED) { // mouse wheel up
-                (*page_start)--;
+                *page_start -= 4;
 
                 // went past beginning, show first page
                 if (*page_start < 0)