fix off-by-one error on scrollbar click detection

develop
myk002 2022-09-14 09:25:43 -07:00
parent 759f46dbd9
commit b88d343ddd
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 1 additions and 1 deletions

@ -712,7 +712,7 @@ function Label:click_scrollbar()
return 1
else
local pos, height = get_scrollbar_pos_and_height(self)
if y < rect.y1 + pos then
if y <= rect.y1 + pos then
return '-halfpage'
elseif y > rect.y1 + pos + height then
return '+halfpage'