mirror of
https://github.com/1j01/textual-paint.git
synced 2024-11-24 16:55:38 +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