typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.54k stars 56 forks source link

Code blocks with horizontal scrollbars intercept vertical scroll events #4465

Open ybnd opened 3 years ago

ybnd commented 3 years ago

Describe the bug With "Auto wrap long lines" disabled, code blocks with unwrapped lines intercept all scroll events, even though they don't have to scroll vertically. This can make for a choppy experience with long files, as each "wide" code block will interrupt scrolling.

To Reproduce

  1. Open the attached test.md file
  2. Place your cursor somewhere over the text
  3. Try scrolling all the way down

Expected behavior Should be able to scroll vertically through a long document with multiple "wide" code blocks without having to adjust the cursor position.

Screenshots / Screencasts

https://user-images.githubusercontent.com/31547038/120853130-7b95db80-c57b-11eb-8889-c1b49135e4ac.mp4

Desktop (please complete the following information):

Typora Version e.g: 0.10.10

abnerlee commented 3 years ago

may relates #4373

ybnd commented 3 years ago

FYI: the same thing happens with wide tables

abnerlee commented 3 years ago

Did you scroll using trackpad or mouse wheel?

I'm not able to reproduce this.

ybnd commented 3 years ago

Mouse wheel

ybnd commented 3 years ago

Can't reproduce this anymore in 0.11.5