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
Pane resize handle feels too small Linux, Electron fails to update mouse cursor #62320
Comments
@shew82 Thanks for the video. |
Yeah I often hit this too. We currently use 4px for sashes: https://github.com/Microsoft/vscode/blob/master/src/vs/base/browser/ui/sash/sash.css#L19 @isidorn Careful when updating that, there's other measurements on that file which depend on those 4px, so adjustments would need to be made. One idea to improve here would be to use CSS variables and math, or just move everything to JS. |
@joaomoreno ack. Let's put it to on-deck and debt and when we have time we can tackle it. |
You know... there's also another issue: Electron on Linux is pretty bad at updating the mouse cursor, especially in high DPI, known issue. So, often it seems that the cursor isn't over the sash (cause the cursor type doesn't change) when in fact pressing down and dragging would actually resize it. @shew82 Can you confirm this? |
@joaomoreno sometimes happens to me, too (windows 7), but even when not, the sash is too narrow for my liking. WTBS, couldn't vscode do something like chrome devtools? (the area highlighted in yellow can be dragged to resize → i.e. if there's no button, the whole header acts as a handle) There's a lot of space for vscode's terminal to do the same: |
In the video I attached, this actually happens between the 5 and 10 second mark - the pane is resized while the cursor remains an arrow. |
Yeah I really like how devtools does that, we could try something like that, what do you think @isidorn?
Yeah... it's a sad bug. We should actually check whether Electron 3 fixes it. |
Yeah, that is a neat idea. |
I can also reproduce this with with an experimental Electron 3 build. Behaviour is the same basically: the cursor does not change on hovering over the sash but pressing LMB down and dragging would actually resize the pane. Ubuntu 18.10, GNOME, default cursor theme, scaling set to a factor of 1.5 using VSCode:
|
Same issue here, I'm using ubuntu 18.10 with 200% scaling factor and 3200 * 1800 resolution. Except small pane resize handle, mouse cursor does not change properly to text in some part of editor. Version: 1.31.0-exploration |
@joaomoreno I can confirm this on 200% scaling factor: It is the cursor issue, not the size. I increased the size of the sash to 40px and even that "feels hard to grab." I've made a little demo with the Developer Tools, which shows the problem pretty clear: I think it could make sense to increase the size of the sash to 6px. Here is a screenshot with 4px (vertical) and 6px (horizontal):
|
Very curious if there would be a common solution to both this and #65294 where high DPI Linux screens will only render the |
I have the same issue with:
Very hard to catch right position of mouse cursor in edge between windows. |
fyi @sbatten since you are looking into panel layout these days |
Same issue issue on Xubuntu 18.04 (XFCE) and VSCode 1.30.2 with a HiDPI display. |
Same issue here https://imgur.com/a/Z8SbOsb
Resolution: 3200x1800px |
In full screen mode everything is ok. |
That's right, for me too. |
Look like cursor not changing even you under right position Manjaro Linux x86_64 - 4.19.20-1-MANJARO |
Seems this issue depends on custom title bar functionality ... |
I confirm this. Maybe VS Code ought not suggest this when you start up native title bar: |
@hwinkler With the next release, that notification will disappear https://code.visualstudio.com/docs/setup/linux#_using-the-custom-title-bar |
OK, the issue is mentioned in VScode docs. |
This eliminates microsoft/vscode#62320.
Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/ |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
On vscode v1.28.2 (and presumably other versions) there is a very small region to "grab" a pane separate in order to resize the pane (e.g. make integrated terminal smaller, etc). This can make resizing panes very difficult.
resize handle is hard to grab.mkv.zip
Commit: 7f3ce96
Date: 2018-10-17T00:20:56.183Z
Electron: 2.0.9
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64
OS: Ubuntu 18.04
The text was updated successfully, but these errors were encountered: