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

Bug: Line number in code snippets doesn't stay on the left side when scrolling #978

Closed
4 of 11 tasks
Manueljlin opened this issue Mar 5, 2022 · 11 comments
Closed
4 of 11 tasks

Comments

@Manueljlin
Copy link

Manueljlin commented Mar 5, 2022

Summary

On long snippets of code like in here, if you scroll horizontally using a touchpad or (more noticeably) with a mouse wheel + shift, the small line number indicator gets detached from the left side

Where did you spot the bug?

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter

Steps to reproduce the issue

  1. Open an entry with a longer code snippet like https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter
  2. Resize window until the content flows out of the view and the scrollbar appears
  3. Scroll horizontally with mouse wheel + shift or with a touchpad

Happens with a 1080p 16:9 screen with the window sized 50vw so it's probably even more noticeable for sub-1920w screen

Environment

Device

  • Desktop
  • Mobile: ...
  • Tablet: ...
  • Other: ...

Browser

  • Chrome: (what version?)
  • Firefox: (97.0.1)
  • Safari: (what version?)
  • Other: (what browser / version?)

Operating system

  • Windows: (what version?)
  • Mac OS: (12.6)
  • Linux: ( openSUSE Tumbleweed / 2022 02 28 )

Screenshots

https://youtu.be/WZV_xQaCNqk

@github-actions github-actions bot added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Mar 5, 2022
@caugner
Copy link
Contributor

caugner commented Apr 29, 2022

@Manueljlin I can no longer reproduce this issue. Could you please try again to see if you still have it?

@caugner caugner removed the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Apr 29, 2022
@Manueljlin
Copy link
Author

Well, this is weird.
When I'm not recording the screen, I can't reproduce it anymore with the external computer mouse, and only just slightly with the trackpad. The moment I do start recording though, it appears again.

Here's more detailed information:

KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.2
Kernel Version: 5.17.3-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-10510U CPU @ 1.80GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics

Firefox: 99.0.1 (64-bit)

IIRC, I could reproduce it on a windows machine at school too, which might be easier to grab info from than to fight all of the opensuse downstream patches, xorg, kwin, nvidia stuff

@Manueljlin
Copy link
Author

Just remembered about this one. More info:

  • Can reproduce with macOS 12.6 on an M1 Mini with a regular mouse + Shift and with the mouse's horizontal scroll wheel click thing (Logitech M720). Not exclusive to Linux, but that's not really surprising.

  • Only happens with Firefox (in this case 105.0.1), not on Chrome or Safari.

I'll try on an M1 iMac + Magic Trackpad tomorrow and try to add more details for touchpads since I don't have the laptop from the previous comment anymore.

@caugner caugner transferred this issue from mdn/yari Nov 15, 2022
@caugner
Copy link
Contributor

caugner commented Nov 15, 2022

Closing in favor of #976.

@caugner caugner closed this as not planned Won't fix, can't repro, duplicate, stale Nov 15, 2022
@Manueljlin
Copy link
Author

I /think/ that's a different bug that just happens to also be for the line indicator

@caugner
Copy link
Contributor

caugner commented Nov 15, 2022

@Manueljlin Would you be able to share a full-screen video of the steps to reproduce this issue?

@caugner caugner reopened this Nov 15, 2022
@Manueljlin
Copy link
Author

Ok, here's a few more videos, this time macOS Monterey on M1 Mini. As for the steps, just scroll with a mouse while holding shift to move horizontally.

macos-firefox-recording.mp4
macos-chrome-recording.mp4
macos-safari-recording.mp4

It only happens with Firefox, it seems. Upstream issue? :D

@caugner
Copy link
Contributor

caugner commented Nov 16, 2022

Thank you so much for those videos. I noticed that in the Chrome/Safari videos you scroll using the scrollbar, was that intended?

It only happens with Firefox, it seems.

Could you please try again with Troubleshoot Mode (Help > Troubleshoot Mode)?

PS: I was able to reproduce a tiny artifact in Firefox 109.0a1 on Mac OS (Intel) when horizontally scrolling using Shift + mouse scroll:

Screen.Recording.2022-11-16.at.11.14.25.mov

@Manueljlin
Copy link
Author

I scrolled with both the scroll bar and mouse wheel in all videos to show that with the scroll bar it can't be reproduced on any of them, including Firefox. What I didn't notice is that in the latter two videos I use the scroll bar first unlike the first one 😅

With chrome I start using the scroll wheel 10 seconds in. In safari 5 seconds in.

I'll try with the troubleshoot mode later today, and also update the Firefox version from the bug report to the current one

@NiedziolkaMichal
Copy link
Member

@Manueljlin Could you please check if this issue is now resolved?

@Manueljlin
Copy link
Author

Yeah, it's solved :D Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants