fix wrong cursor when dragging tabs

This commit is contained in:
takase1121 2021-09-02 10:38:19 +08:00
parent fb574eabbd
commit 48a3f0b3e9
No known key found for this signature in database
GPG Key ID: 60EEFFC68EB3031B
1 changed files with 3 additions and 1 deletions

View File

@ -858,7 +858,9 @@ function RootView:on_mouse_moved(x, y, dx, dy)
local node = self.root_node:get_child_overlapping_point(x, y)
local div = self.root_node:get_divider_overlapping_point(x, y)
local tab_index = node and node:get_tab_overlapping_point(x, y)
if node and node:get_scroll_button_index(x, y) then
if self.dragged_node then
core.request_cursor("arrow")
elseif node and node:get_scroll_button_index(x, y) then
core.request_cursor("arrow")
elseif div then
core.request_cursor(div.type == "hsplit" and "sizeh" or "sizev")