diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-08 19:48:51 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-08 19:49:06 +0300 |
| commit | a7cd7806f2fa0251e2dca41ffec61ceafb6f0e18 (patch) | |
| tree | 37ea48c24e145e5514e44d78eb8807c661537948 /src/app/input/mouse.rs | |
| parent | 07222706c78943da814e39abece8b5ba5a10dfc3 (diff) | |
fix: reduce scroll CPU in headless server
refs #512
Diffstat (limited to 'src/app/input/mouse.rs')
| -rw-r--r-- | src/app/input/mouse.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/app/input/mouse.rs b/src/app/input/mouse.rs index e69bb2c1..a682d7ac 100644 --- a/src/app/input/mouse.rs +++ b/src/app/input/mouse.rs @@ -1547,10 +1547,7 @@ impl AppState { else { return false; }; - if !rt - .input_state() - .is_some_and(crate::pane::InputState::mouse_reporting_enabled) - { + if rt.wheel_routing() != Some(crate::pane::WheelRouting::MouseReport) { return false; } rt.scroll_reset(); |
