From 699655bebfed23a1ab18d1382084a6374885f439 Mon Sep 17 00:00:00 2001 From: Guldoman Date: Sun, 20 Mar 2022 04:45:14 +0100 Subject: [PATCH] Don't specify delta movement when simulating `TreeView:on_mouse_moved` --- data/plugins/treeview.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/plugins/treeview.lua b/data/plugins/treeview.lua index 39c67907..bb7255b4 100644 --- a/data/plugins/treeview.lua +++ b/data/plugins/treeview.lua @@ -299,7 +299,7 @@ function TreeView:update() -- we don't want events when the thing is scrolling fast local dy = math.abs(self.scroll.to.y - self.scroll.y) if self.scroll.to.y ~= 0 and dy < self:get_item_height() then - self:on_mouse_moved(self.cursor_pos.x, self.cursor_pos.y, 0, self.scroll.to.y - self.scroll.y) + self:on_mouse_moved(self.cursor_pos.x, self.cursor_pos.y, 0, 0) end TreeView.super.update(self)