|
|
also allow scrolling when the position is exactly on the pane its scrollbar - sfeed_curses - sfeed curses UI (now part of sfeed, development is in sfeed) |
|
|
 |
git clone git://git.codemadness.org/sfeed_curses (git://git.codemadness.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
 |
commit 031a577c39cdd4fcf518569d2ca7e869e646313f |
|
|
 |
parent 357de99788bf6760165d1934d4dc4838c18f1583 |
|
|
 |
Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) |
application/vnd.lotus-organizer |
|
|
Date: Wed, 24 Mar 2021 23:07:07 +0100 |
|
|
|
|
|
|
|
also allow scrolling when the position is exactly on the pane its scrollbar |
|
|
|
|
|
|
|
Diffstat: |
|
|
|
M sfeed_curses.c | 4 ++-- |
|
|
|
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-) |
|
|
|
--- |
|
|
 |
diff --git a/sfeed_curses.c b/sfeed_curses.c |
|
|
|
@@ -1702,8 +1702,8 @@ mousereport(int button, int release, int keymask, int x, int y) |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
- /* check if mouse position is in pane */ |
|
|
|
- if (!(x >= p->x && x < p->x + p->width && |
|
|
|
+ /* check if mouse position is in pane or its scrollbar */ |
|
|
|
+ if (!(x >= p->x && x < p->x + p->width + (!scrollbars[i].hidden) && |
|
|
|
y >= p->y && y < p->y + p->height)) |
|
|
|
continue; |
|
|
|
|
|