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

Horizontal scrollbar is broken. #96928

Closed
panzi opened this issue May 4, 2020 · 11 comments
Closed

Horizontal scrollbar is broken. #96928

panzi opened this issue May 4, 2020 · 11 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug ux User experience issues verified Verification succeeded
Milestone

Comments

@panzi
Copy link

panzi commented May 4, 2020

  • VSCode Version: 1.44.2 ff91584 x68
  • OS Version: Fedora Linux 5.6.8-200.fc31.x86_64

Steps to Reproduce:

  1. Write code that is longer than one screen and wider than one screen
  2. Try to drag the hotizontal scrollbar to the end of the long line

Does this issue occur when all extensions are disabled?: Not sure.

I launched code --disable-extensions and now the bug doesn't even occur with extensions enabled again anymore. Weird.

Here is a video that demonstrates the issue:
https://www.youtube.com/watch?v=iljabc6RusA

@alexdima alexdima added the linux Issues with VS Code on Linux label May 6, 2020
@alexdima
Copy link
Member

alexdima commented May 6, 2020

@panzi I have tried to reproduce, but could not, clicking and dragging the scrollbar works fine for me. From your video, it is not clear to me if you click on the scrollbar or like 1px above it.

Please let me know what else I should do to try to reproduce.

@alexdima alexdima added the info-needed Issue requires more information from poster label May 6, 2020
@panzi
Copy link
Author

panzi commented May 6, 2020

I clicked when the scrollbar got highlighted. I assumed the mouse is over the scrollbar when it's highlighted. There are like two pixels that I can actually click for it to recognize the scrollbar, because most of it is an invisible drag handle to drag in a shell.

Another video where you can see how exact you have to hit the scrollbar and it still didn't work right: https://www.youtube.com/watch?v=MwcPAfBkqSE

@alexdima
Copy link
Member

alexdima commented May 6, 2020

@joaomoreno I don't know if you're the person for this, but I can also reproduce that the "drag the panel" area is completely over the editor scrollbar. I wonder why could we not move this to be more over the status bar since that is higher than the scrollbar and has more pixels to click on.

@alexdima alexdima removed their assignment May 6, 2020
@joaomoreno
Copy link
Member

joaomoreno commented May 8, 2020

@alexdima While I don't dispute the fact that the sash is on top of the horizontal scrollbar, which it is:

image

I believe the user isn't talking about the sash, but rather that there seems to be a mismatch between the sash being highlighted and being hit on: when they click and drag it's as if they're setting and dragging the editor cursor, instead of the scrollbar handling the event. Maybe some strange browser rounding error due to a device pixel ratio of >1?


Nevertheless, placing the sash on top of the status bar also doesn't seem to be a good solution. Instead of moving it 2px down, how do you feel about making the horizontal scroll bar 2px taller?

@alexdima
Copy link
Member

Nevertheless, placing the sash on top of the status bar also doesn't seem to be a good solution

Why not? The status bar is most of the times empty and not clickable, while the scrollbar is always clickable. What is especially ugly here is that the scrollbar reacts to the mouse hover and fades in, making it appear ready to be responsive to the click, but then the click doesn't reach it.

Instead of moving it 2px down, how do you feel about making the horizontal scroll bar 2px taller?

👍 We can also do this.

@joaomoreno
Copy link
Member

What is especially ugly here is that the scrollbar reacts to the mouse hover and fades in, making it appear ready to be responsive to the click, but then the click doesn't reach it.

But it doesn't seem to be because of the sash: otherwise the sash would be moved, instead of the text being selected, right?

@alexdima
Copy link
Member

alexdima commented May 11, 2020

@joaomoreno I cannot reproduce the initial issue in the opening post. I would fix it if I could reproduce. But then the discussion expanded and we landed on how the scrollbar is covered by the sash in the bottom... Can you reproduce the issue from the opening post?

@joaomoreno
Copy link
Member

I also can't repro it. I have plenty of space to select the scrollbar and it seems to always work as the hover feedback predicts it to work.

So, let's pump the editor's horizontal scrollbar height?

@joaomoreno
Copy link
Member

Related to #84315 (comment)

@joaomoreno joaomoreno added bug Issue identified by VS Code Team member as probable bug ux User experience issues and removed linux Issues with VS Code on Linux info-needed Issue requires more information from poster labels May 11, 2020
@joaomoreno joaomoreno added this to the May 2020 milestone May 11, 2020
@joaomoreno
Copy link
Member

Sash was moved to be on top of both the editor and the status bar, half half.

@alexdima
Copy link
Member

I've also increased the default height from 10px to 12px, so whereas before there were 6px to hit the horizontal scrollbar (10px-4px), now there should be 10px (12px-2px).

@dbaeumer dbaeumer added the verified Verification succeeded label Jun 4, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jun 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug ux User experience issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants