Skip to content

Bug: Scrolling interrupts code selection in Jupyter cells #17357

@yao24247

Description

@yao24247

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

Bug Summary

When selecting code inside a Jupyter notebook cell, scrolling the mouse wheel interrupts the text selection. In addition, the cell height changes unexpectedly during scrolling.

This issue seems to have been present for several VS Code versions already (V1.106? – V1.113). From memory, it appears to have started sometime around Q4 last year. Before that, scrolling the mouse wheel while selecting text in a Jupyter cell still allowed the selection to continue normally.

QQ2026326-20638-HD.mp4

Steps to Reproduce

  1. Open a Jupyter notebook in VS Code.
  2. Open a code cell with enough lines to require scrolling.
  3. Use the mouse to start selecting code in the cell.
  4. While selecting, scroll the mouse wheel.

Expected Behavior

The text selection should continue while scrolling, allowing the user to select more code across the cell.

Actual Behavior

Scrolling the mouse wheel interrupts the selection, and the Jupyter cell height changes unexpectedly.

VS Code Version

Version: 1.113.0 (system setup) Commit: cfbea10c5ffb233ea9177d34726e6056e89913dc Date: 2026-03-24T15:07:18+01:00 Electron: 39.8.3 ElectronBuildId: 13620978 Chromium: 142.0.7444.265 Node.js: 22.22.1 V8: 14.2.231.22-electron.0 OS: Windows_NT x64 10.0.26200

Jupyter Extension Version

2025.9.1 and 2025.10.2026030601

Jupyter logs

Coding Language and Runtime Version

No response

Language Extension Version (if applicable)

No response

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

None

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugtriage-neededIssue needs to be triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions