{"version":"2.1.267","anchor":"pointer-capture-released-when-alt-screen-is-torn-down-or-han","canonical_anchor":"pointer-capture-released-when-alt-screen-is-torn-down-or-han","heading":"Pointer capture released when alt-screen is torn down or handed off","tier":"notice","area":"Terminal UI","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.267\/e\/pointer-capture-released-when-alt-screen-is-torn-down-or-han","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.267","markdown":"### Pointer capture released when alt-screen is torn down or handed off\n\nMouse click capture is now cleaned up when the terminal's alternate screen is torn down or handed off\n\n**What**\n\nClaude Code's terminal renderer uses an \"alt screen\" (a separate full-screen display terminals use for interactive apps). When that alt screen is handed off (`handoffAltScreen()`) or deactivated, Claude Code now calls `endPointerCapture()` and `tellPressedNowhere()` before resetting terminal modes and repainting.\n\n**Why**\n\nThis cleans up any stuck mouse-press or pointer-capture state left over from the alt screen, preventing leftover mouse interaction state from carrying over incorrectly after the screen is torn down or handed off.\n\n- Area: Terminal UI\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5"}