Don't specify delta movement when simulating TreeView:on_mouse_moved
This commit is contained in:
@@ -299,7 +299,7 @@ function TreeView:update()
|
|||||||
-- we don't want events when the thing is scrolling fast
|
-- we don't want events when the thing is scrolling fast
|
||||||
local dy = math.abs(self.scroll.to.y - self.scroll.y)
|
local dy = math.abs(self.scroll.to.y - self.scroll.y)
|
||||||
if self.scroll.to.y ~= 0 and dy < self:get_item_height() then
|
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
|
end
|
||||||
|
|
||||||
TreeView.super.update(self)
|
TreeView.super.update(self)
|
||||||
|
|||||||
Reference in New Issue
Block a user