libroar/RoarCanvasWindow.py:onScroll(): hide cursor when scrolling.

This commit is contained in:
Lucio Andrés Illanes Albornoz 2019-09-14 11:33:13 +02:00
parent 342af59ffe
commit 3298e9925b

View File

@ -156,11 +156,9 @@ class RoarCanvasWindow(GuiWindow):
# }}} # }}}
# {{{ onScroll(self, event) # {{{ onScroll(self, event)
def onScroll(self, event): def onScroll(self, event):
if self.canvas.dirtyCursor: viewRect = self.GetViewStart()
viewRect = self.GetViewStart() eventDc = self.backend.getDeviceContext(self.GetClientSize(), self, viewRect)
eventDc = self.backend.getDeviceContext(self.GetClientSize(), self, viewRect) self.backend.drawCursorMaskWithJournal(self.canvas.journal, eventDc, viewRect)
self.backend.drawCursorMaskWithJournal(self.canvas.journal, eventDc, viewRect)
self.canvas.dirtyCursor = False
event.Skip() event.Skip()
# }}} # }}}