From 48a3f0b3e97b553b2c9371c579d6d30b85e915b7 Mon Sep 17 00:00:00 2001 From: takase1121 <20792268+takase1121@users.noreply.github.com> Date: Thu, 2 Sep 2021 10:38:19 +0800 Subject: [PATCH] fix wrong cursor when dragging tabs --- data/core/rootview.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data/core/rootview.lua b/data/core/rootview.lua index 03affc35..e76a02ab 100644 --- a/data/core/rootview.lua +++ b/data/core/rootview.lua @@ -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")