-
Notifications
You must be signed in to change notification settings - Fork 17.4k
Atom 1.7: bad scrollbar behavior #11484
Comments
+1 |
I have the same issue, since Atom 1.7.0 or 1.7.1: |
@damieng Can you take a look at this? |
Atom 1.7.3, I can still see the issue... |
I can only reproduce this when using the https://github.com/atom/atom-light-ui theme all other themes seem to work fine. |
I've been having an issue where the scrollbars are just not themed and seems to be a regression of #3559. I found out that if you disable the @domNode.style['-webkit-transform'] = 'translateZ(0)' # See atom/atom#3559 It is possible that the Chromium bug found in #3559 (see #3559 (comment)) has been fixed and the EDIT: Just wanted to mention that re-enabling the Sorry, missed that @jscissr already found the issue =P |
Not a Windows-only bug. I can reproduce in 1.7.3 on Ubuntu 14.04 LTS fully up to date. Since hardware acceleration might be an issue, here is the hardware info from About This Computer: Memory: 31.4 GiB I am using the proprietary AMD drivers from fglrx-updates (currently 2:15.201-0ubuntu0.14.04.1) |
tl;dr: my issue might be caused by a community package instead, but may point to a possible cause of the original issue. After some testing with a local build of 1.8 beta 3 and reset sessions as a result, I think I found a way to trigger the bug, though for me it was triggered with the help of a community package and may be a bug in that package instead. If so, what I'm experiencing may not be related to the original. But so far, this is the only way I can find to reproduce the visual issue from a fresh
I don't know if that helps or not. So far, I cannot reproduce without the As for the original bug, this might be a race condition between two internal components that are trying to adjust styles (CSS order) or causing different Z positions based on element appears first. I'm not sure. One other thing to note here is that, unlike @Ben3eeE's being only able to reproduce in the light-ui theme, this reproduces with both the stock One Dark and Atom Dark themes (both UI and syntax). HTH |
So this seems to happen when the scrollbars are non themed? Are the scrollbars in @leonexis I also have all kinds of problems with the https://github.com/skandasoft/browser-plus/ package same as you describe. It started with Console output when I get with
|
@Ben3eeE, I was not able to reproduce the original problem in linux as described in the original report. However, I was able to reproduce it in Windows 10 (MSEdge VM from modern.IE in Virtualbox 5.0.10, 2D/3D acceleration enabled) with a fresh install of Atom. It required that I switch to the Atom Light theme as you mentioned. I then opened Now that I've seen the original bug in action in Windows, I attempted to reproduce in Linux using the same steps as above. I could not reproduce in Linux. The scrollbar appeared to work normally in Atom 1.7.3 on Ubuntu 14.04. My issue appears to be unrelated to the original. It just so happens that removing If I had a mac, I would try removing the |
@damieng Add Windows label again? ☝️ |
So just now it happened that I had two panes open, the left one had the bug, the right one not. I opened DevTools: And it looks like the It seems like the scrollbar dimensions are measured too early, but while Atom is initializing, |
I tried changing the lines @jscissr mention to
And the problem does seem to have disappeared. |
@Ben3eeE Where to change those lines when Atom-UI-Light is enabled? |
@niklasfink Changing these lines is likely not a correct solution or workaround for this issue, my comment was to test the information that the cause seems to be centered around these lines as @jscissr had investigated. |
+1 && /sub Also: still a problem in 1.8 |
I had to change the theme as long as there was impossible to work with it |
Still occurs for me on 1.9.8, Windows 10, with Atom Light theme. Switching the theme to One Light and back to Atom Light provides a temporary fix. |
Dunno how helpful "+1"s are, but it's been happening to me too. Win7, Atom Light. Matches all the symptoms. @leonexis provided a good repro case, looks like. Anything else we can do to help identify+solve it? Aside from the usual "fix it and make a PR" bit. ;) |
+1 still a problem in 1.9.8 |
I'm seeing the same issue on 1.9.9 on Windows 10 Home. When I open a file from the tree view, I can scroll down using the scrollbar.
I am also using atom-light-ui. Will test if switching themes helps. Also, I have Line Numbers enabled. Not sure if it matters. |
Switched to Atom Dark for both UI and Syntax themes and it resolves it. I hate dark themes however so .... mmm... EDIT: EDIT 2: WorkaroundSwitch the UI theme to One Light (or any theme but Atom Light it seems) and the bug is gone. |
/cc @simurai regarding Atom Light. |
👍 Nice find, @jscissr If I change it to Maybe the native scrollbars have different widths on Windows vs macOS. That will somehow cause the scrolling to be off. This post seems to confirm the The reason why it seems to work in Atom dark UI is because it uses a custom scrollbar. There the width is just So possible solutions might be:
Ideally, there shouldn't be a need for those "fallback" sizes, but I guess that's a lot harder to fix. I can merge option 1, in case nobody wants to try option 2. |
+1 still a problem in 1.10.2 |
Merged atom/atom-light-ui#34. So But it's still an issue for themes that use the native (unstyled) scrollbars. |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks! |
Windows 7, Atom 1.7.1 started in safe mode.
I load a medium-sized file, around 500 lines of JS code.
I jump to the end of the file with Ctrl+End.
The scrollbar thumb isn't at the bottom of the scrollbar.
I try to click on the middle of the thumb (to drag it). The thumb goes up. I can repeat this a few times, until the thumb goes in the first half of the bar. There, I can catch it...
Actually, I can drag the thumb if I aim at where it should be (the bottom of the bar).
The text was updated successfully, but these errors were encountered: