mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-26 08:56:36 +00:00
libroar/RoarCanvasWindow.py:onScroll(): hide cursor when scrolling.
This commit is contained in:
parent
342af59ffe
commit
3298e9925b
@ -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