From 2d33fdc65686f4dd09bb69c62379cc532adcb5ea Mon Sep 17 00:00:00 2001 From: Guldoman Date: Sat, 28 Aug 2021 20:05:25 +0200 Subject: [PATCH] Show correct mouse cursor when hovering the horizontal scrollbar --- data/core/docview.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/core/docview.lua b/data/core/docview.lua index ee0545fd..3511ad73 100644 --- a/data/core/docview.lua +++ b/data/core/docview.lua @@ -279,7 +279,8 @@ end function DocView:on_mouse_moved(x, y, ...) DocView.super.on_mouse_moved(self, x, y, ...) - if self:scrollbar_overlaps_point(x, y) or self.dragging_scrollbar then + local overlap_v, overlap_h = self:scrollbar_overlaps_point(x, y) + if overlap_v or overlap_h or self.dragging_v_scrollbar or self.dragging_h_scrollbar then self.cursor = "arrow" else self.cursor = "ibeam"