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.
I am also using iPad OS 14 and no scrolling whatsoever with the magic keyboard, not even the page. Nothing happens at all.
So it does look like the people that do Gitpod and Theia have been able to fix this. https://github.com/gitpod-io/gitpod/issues/1703#issuecomment-690002867
Confirmed working in GitPod.
@mjsamberg Did you test it with a trackpad? I just spun up a gitpod (at gitpod.io) and I see the same issue as with code-server—scrolling with touch works but not with a trackpad 😕 Same with clicking into the editor when it's out of focus, only touch works.
@kamaln7 Yeah. Looks like it only works with certain content frames :/
This indeed makes code-server almost unusable on the iPad + magic keyboard, and there seems to be no activity on the webkit-linked issue :( Anything that we can do to prioritize / help with this issue? I am not familiar at all with the technologies involved here, so I can’t really help on the coding side unfortunately.... (wow, didn’t notice, this is the most up-voted issue on the tacker, maybe there is hope :D)
As a (rather heavyweight) workaround I installed XFCE and XRDP on my development VM and use the iOS RDP/VNC app "Jump" to connect to the XFCE desktop. There I installed VSCode and can use the MagicKeyboard trackpad without issues. Not quite as elegant or efficient as using Coder in the browser, but it gets the job done. I can use my iPad for quick coding session while Im on the road (or in bed :). Took a bit of configuration (and googeling) to get everything working but I can give some pointers if anyone is interested.
Another update
Please reference this WebKit issue for progress towards a patch.
Since it does not look like anything is moving there, i'll just put an idea here. The WebKit issue seems to be that "Trackpad and Mouse scroll events on iPad only fire "pointermove" -- not "wheel" ". When playing around a bit i noticed that they indeed don't fire wheel, but scroll events. Is it maybe possible to support "scroll" events?
What about including a polyfill for those in some global file from code-server? Or fwding them manually.
@TobiaszCudnik if you mean to rewrite the pointermove events to mousewheel events: That won't work, wheel events are read only and can't be fired from JS.
For everybody who is not monitoring the Webkit bugtracker issue: https://bugs.webkit.org/show_bug.cgi?id=210071#c13
Also, do know that while I can't comment on the timing of fixes, I am absolutely aware of this and know that it is important.
So there is hope :)
Is it possible to scroll the editor pane with JS? I tried with element.scrollBy(x, y). But it could be scroll only downward direction. If it's possible, the issue will be solved for me.
+1 just moved to iPad only workflow and this is one of those little things that is a pain, but can see there does appear to be some others having issue and it’s bigger than just VSCode.
Has anyone here gotten an invite to GitHub Codespaces? I assume that if they don’t yet support iPad OS’ scrolling then they’ll have to when it goes public
@pierremtb the scrolling also doesnt work in codespaces (I checked), so Im sure the fix will come from the upstream eventually...
@TobiaszCudnik thanks for checking, feels like good news to me!
The VSCode Issue: https://github.com/microsoft/vscode/issues/106232
Looks like the patch has landed in upstream WebKit - hopefully it's only a matter of time before this is fixed in new iOS builds! https://trac.webkit.org/changeset/270712/webkit
Any update?
The WebKit fix does not look like it is contained in the latest iOS beta 14.4, so we will have to wait a bit longer.
Its possible also teh WebKit fix will fix for some pages but not vscode if this comment is still correct https://bugs.webkit.org/show_bug.cgi?id=210071#c22