Can’t scroll on iPad with a trackpad.
On an iPad running iPadOS 13.4 (which added full trackpad/mouse support), two-finger-scrolling on a trackpad doesn’t work (nothing happens).
Tested in different panels (editor, terminal, settings). Tested using Magic Trackpad 2 (Apple’s iPad Pro keyboard with trackpad is not yet available). Tried both the :latest (About window shows 1.41.1) and :3.0.1 docker images.
Magic Mouse also doesn't "scroll" it seems to simulate "up" and "down" from the keyboard instead. There may be behavior settings we need to adjust?
Also, the scroll wheel on a mouse scrolls the entire window instead of just the text editor area.
On a Logitech MX Vertical, binding Scroll Up and Scroll Down in Assistive Touch settings to the forward and back buttons allows for scrolling in the terminal/code windows separately. I haven’t found a way to bind those actions to the gesture of scrolling on the Magic Trackpad 2
EDIT: Currently working around by highlighting then scrolling with one finger
We're making this a priority. Thanks for the upvotes everyone, shows us it's in high demand 👀.
@mjsamberg The app container scrolling should be fixed in the code-server 3.0 releases — certainly it appears to be better for me now in code-server 3.0.2.
I can confirm though that neither the Magic Mouse 2 nor the Magic Trackpad 2 scrolling works in 3.0.2 though. Scrolling using the touchscreen does work, although it feels slow due to the fact that there is no scroll momentum.
@neilalexander App container scrolling still occurs with my logitech mouse and the scroll wheel.
Update on progress towards iPad trackpad/mouse support:
After investigation, we've determined that this issue will require a significant patch to the VSCode scroll/touch handling logic and/or a patch to the WebKit events for iPad trackpad and mouse.
VSCode handles all scrolling logic manually, nearly all scrollable elements have overflow: hidden. It uses wheel and touchmove events for desktop and mobile position calculations, respectively. Counterintuitively, Safair emits pointermove events when the cursor/trackpad is scrolled on iPad. pointermove encodes the (x, y) position of the cursor, which during scrolling is completely useless in determining the scroll delta. Our attempts to surpass this limitation of the iPad's pointer-events and override all existing scroll logic have yielded nothing more than brutally buggy results.
TLDR: We believe it's likely that WebKit will improve its handling of trackpad/mouse scrolling in the near future. When this happens, we will promptly add support.
Thanks for the update, I had experienced weird behavior elsewhere so I assumed it was doing something under the hood
Hello, has somebody found any other workaround for this? (even if it is buggy) I mean, other than using the scrollbars.
code-server and an Ipad pro with magic keyboard (which includes trackpad) is awesome!
I did notice, FWIW, that scrolling does work as expected in Google Docs website on iPad in multiple directions and even when there are multiple scrollable elements on the screen.
@mjsamberg the faulty interaction between iPad trackpad and the code-server editor view seems to be an edge case. I see a lot of complex web apps handling scrolling stuff without any issue (gdocs, office356, dropbox, etc). The mentioned WebKit issue linked by @cmoog also has no movement at all so far.
@perelin VS Code's editor handles scrolling manually so that it doesn't have to load the entire file into memory all at once. The ability to control scrolling manually is what's unsupported by webkit on iOS.
Curious, has anyone played around with this on iOS 14 beta yet and noticed a difference?
@danielscottjames Just tried it, no difference.
Oh, that is heartbreaking @mjsamberg. I was hoping it would work.
I hope any improvement of this case.
Don’t we all...
Same here 😔
I can also report this issue, scrolling on the magic keyboard for iPad just scrolls the entire browser window and not the editor pane