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 9e2d9d1419
commit 67f2d11240

View File

@ -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
event.Skip()
# }}}