zed icon indicating copy to clipboard operation
zed copied to clipboard

Scrolling gets stuck when scrolling over large blocks of duplicated Rust code

Open mrnugget opened this issue 1 year ago • 1 comments

Sorry for the hyper-specific issue title, but I don't know what the exact circumstances are in which it replicates.

Steps to reproduce:

  1. Open Rust file
  2. Create a line that says let foo = HashMap::new()
  3. Copy & paste that line 50-100 times
  4. Hold down up, down pressed to scroll over it

What happens: Zed seems to get stuck when scrolling over these lines

What I expected to happen: it scrolls smoothly

Video:

https://github.com/zed-industries/zed/assets/1185253/001df6f0-42ee-470c-838b-b0c2be60e51d

Ignore the details on the right, those are just printed to show that scroll events are being sent when holding downt he key.

mrnugget avatar Feb 26 '24 14:02 mrnugget

Can't reproduce this one. Does this problem still exist after recent optimizations?

alygin avatar May 11 '24 17:05 alygin

No, I don't think so. Let's close it!

mrnugget avatar May 13 '24 07:05 mrnugget