Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entering and exiting altscreen in the terminal causes mouse wheel scrolling to misbehave #233966

Open
zygoloid opened this issue Nov 16, 2024 · 0 comments
Assignees
Labels
new release Issues found in a recent release of VS Code

Comments

@zygoloid
Copy link

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.95.3
  • OS Version: Mac OS Sonoma 14.7.1

Steps to Reproduce:

  1. Open Terminal
  2. Create enough output that the terminal scrolls
  3. Run any command that switches the terminal to altscreen and back. For example, run and quit less /usr/share/dict/words or run and quit vim.
  4. Attempt to scroll the terminal using the mouse wheel.

Expected behavior:

The terminal scrolls relative to the current position (the bottom of the scrollback).

Actual behavior:

Attempting to scroll up has no effect. Attempting to scroll down jumps to the top of the scrollback and scrolls down from there.

Based on the behavior, I'd imagine that switching to altscreen is resetting some notion of the internal scroll position to the top of the scrollback, and it's not being properly restored when the altscreen is ended.

@vs-code-engineering vs-code-engineering bot added the new release Issues found in a recent release of VS Code label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new release Issues found in a recent release of VS Code
Projects
None yet
Development

No branches or pull requests

2 participants