Introduction
Introduction Statistics Contact Development Disclaimer Help
also allow scrolling when the position is exactly on the pane its scrollbar - s…
git clone git://git.codemadness.org/sfeed_curses
Log
Files
Refs
README
LICENSE
---
commit 031a577c39cdd4fcf518569d2ca7e869e646313f
parent 357de99788bf6760165d1934d4dc4838c18f1583
Author: Hiltjo Posthuma <[email protected]>
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, …
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].hidde…
y >= p->y && y < p->y + p->height))
continue;
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.