From 2a38135dd9aab73f095191dee0e2bdd09f8f24f6 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 9 Jun 2021 08:33:50 +0900 Subject: [PATCH] [qwaq] Fix scrollbar thumbtab covering button Caused by an out-by-one error. --- ruamoko/qwaq/ui/scrollbar.r | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruamoko/qwaq/ui/scrollbar.r b/ruamoko/qwaq/ui/scrollbar.r index 253d25911..8bb14c0b7 100644 --- a/ruamoko/qwaq/ui/scrollbar.r +++ b/ruamoko/qwaq/ui/scrollbar.r @@ -113,9 +113,9 @@ position_tab (ScrollBar *self) Point o = [self.thumbTab origin]; if (self.range > 0) { if (self.vertical) { - p.y = 1 + self.index * (self.ylen - 2) / (self.range - 1); + p.y = 1 + self.index * (self.ylen - 3) / (self.range - 1); } else { - p.x = 1 + self.index * (self.xlen - 2) / (self.range - 1); + p.x = 1 + self.index * (self.xlen - 3) / (self.range - 1); } } [self.thumbTab move:{p.x - o.x, p.y - o.y}];