From 55d7fa58d0e277c86d327ee30d8c27122e2439f1 Mon Sep 17 00:00:00 2001 From: rxi Date: Sun, 19 Apr 2020 17:21:27 +0100 Subject: [PATCH] Removed fake mouse-moved event on scroll change This ends up causing more problems than it solves; Fixes #29 --- data/core/rootview.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/data/core/rootview.lua b/data/core/rootview.lua index 0a58a6e..3b59d55 100644 --- a/data/core/rootview.lua +++ b/data/core/rootview.lua @@ -470,14 +470,6 @@ function RootView:update() copy_position_and_size(self.root_node, self) self.root_node:update() 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