commit 4b9c35837a1546b1f8f6bd55926b657a79561f51 parent 5ddba1d75e195bb23f70af1097b35ad2260cc9d1 Author: Pavel Renev <an2qzavok@gmail.com> Date: Mon, 26 Jul 2021 13:33:51 +0000 more precise galaxy brain scrolling Diffstat:
M | richterm.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/richterm.c b/richterm.c @@ -110,7 +110,7 @@ threadmain(int argc, char **argv) } if (mmode == 1) { int y; - y = (mv.xy.y - rich.page.r.min.y) * (rich.page.max.y / Dy(rich.page.r)); + y = (mv.xy.y - rich.page.r.min.y) * ((double)rich.page.max.y / Dy(rich.page.r)); scroll(Pt(rich.page.scroll.x, y), &rich); } break;