From 3298e9925b8325ca1b4b0b8658abcbfa0d12d5ba 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() # }}}