Removed fake mouse-moved event on scroll change

This ends up causing more problems than it solves; Fixes #29
This commit is contained in:
rxi 2020-04-19 17:21:27 +01:00
parent 503d5101b5
commit 55d7fa58d0
1 changed files with 0 additions and 8 deletions

View File

@ -470,14 +470,6 @@ function RootView:update()
copy_position_and_size(self.root_node, self) copy_position_and_size(self.root_node, self)
self.root_node:update() self.root_node:update()
self.root_node:update_layout() self.root_node:update_layout()
-- do `on_mouse_moved` if the scroll of the hovered view has changed
local x, y = self.mouse.x, self.mouse.y
local s = self.root_node:get_child_overlapping_point(x, y).active_view.scroll
if self.last_scroll_x ~= s.x or self.last_scroll_y ~= s.y then
self:on_mouse_moved(self.mouse.x, self.mouse.y, 0, 0)
self.last_scroll_x, self.last_scroll_y = s.x, s.y
end
end end