From 67f2d112402b538c53726ae5c3d667f5f35d4aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Sat, 14 Sep 2019 11:33:13 +0200 Subject: [PATCH] libroar/RoarCanvasWindow.py:onScroll(): hide cursor when scrolling. --- libroar/RoarCanvasWindow.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libroar/RoarCanvasWindow.py b/libroar/RoarCanvasWindow.py index dde9b0b..8b0baed 100644 --- a/libroar/RoarCanvasWindow.py +++ b/libroar/RoarCanvasWindow.py @@ -156,11 +156,9 @@ class RoarCanvasWindow(GuiWindow): # }}} # {{{ onScroll(self, event) def onScroll(self, event): - if self.canvas.dirtyCursor: - viewRect = self.GetViewStart() - eventDc = self.backend.getDeviceContext(self.GetClientSize(), self, viewRect) - self.backend.drawCursorMaskWithJournal(self.canvas.journal, eventDc, viewRect) - self.canvas.dirtyCursor = False + viewRect = self.GetViewStart() + eventDc = self.backend.getDeviceContext(self.GetClientSize(), self, viewRect) + self.backend.drawCursorMaskWithJournal(self.canvas.journal, eventDc, viewRect) event.Skip() # }}}