mirror of
https://github.com/1j01/textual-paint.git
synced 2024-09-11 15:56:03 +03:00
Fix a type checker error
This commit is contained in:
parent
1523e960bb
commit
e62064a307
@ -184,7 +184,7 @@ class Window(Container):
|
||||
|
||||
def on_mouse_move(self, event: events.MouseMove) -> None:
|
||||
"""Called when the user moves the mouse."""
|
||||
if self.mouse_at_drag_start:
|
||||
if self.mouse_at_drag_start and self.offset_at_drag_start:
|
||||
self.styles.offset = (
|
||||
self.offset_at_drag_start.x + event.screen_x - self.mouse_at_drag_start.x,
|
||||
self.offset_at_drag_start.y + event.screen_y - self.mouse_at_drag_start.y,
|
||||
|
Loading…
Reference in New Issue
Block a user