Show correct mouse cursor when hovering the horizontal scrollbar
This commit is contained in:
parent
5c7b133e0b
commit
2d33fdc656
|
@ -279,7 +279,8 @@ end
|
||||||
function DocView:on_mouse_moved(x, y, ...)
|
function DocView:on_mouse_moved(x, y, ...)
|
||||||
DocView.super.on_mouse_moved(self, 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"
|
self.cursor = "arrow"
|
||||||
else
|
else
|
||||||
self.cursor = "ibeam"
|
self.cursor = "ibeam"
|
||||||
|
|
Loading…
Reference in New Issue