From 3142901159a847b41ca8355f6e5a0ff11b2b02ab Mon Sep 17 00:00:00 2001 From: Hassan Raza Date: Tue, 6 Oct 2026 18:51:05 +0500 Subject: [PATCH] Stop scroll animations when closing a window --- kitty/window.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/window.py b/kitty/window.py index 92496da3e..5d6812429 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -2120,6 +2120,7 @@ class Window: self.clipboard_request_manager.close() del self.kitten_result_processors if hasattr(self, 'screen'): + self.finish_scroll_animation() if self.is_active and self.os_window_id == current_focused_os_window_id(): # Cancel IME composition when window is destroyed update_ime_position_for_window(self.id, False, -1)