From dda57fcd8eb393369cee1665e725bbefd68e7ea6 Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 20 Nov 2012 02:01:55 +0000 Subject: Wheel jumps four lines --- src/windows.c | 4 ++-- 1 file 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) -- cgit 1.4.1-2-gfad0 te-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log blame commit diff stats
path: root/tangle/003tangle.test.cc
blob: 6d6b88a77734001591d64582d2f865617e0579fd (plain) (tree)
1
2
3
4
5
6
7
8
9