mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 15:26:37 +00:00
libroar/RoarCanvasWindow.py:onScroll(): hide cursor when scrolling.
This commit is contained in:
parent
9e2d9d1419
commit
67f2d11240
@ -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()
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user