code-server icon indicating copy to clipboard operation
code-server copied to clipboard

Can’t scroll on iPad with a trackpad.

Open awahlig opened this issue 6 years ago • 61 comments

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.

awahlig avatar Mar 25 '20 19:03 awahlig

I am also using iPad OS 14 and no scrolling whatsoever with the magic keyboard, not even the page. Nothing happens at all.

jasonjurotich avatar Sep 14 '20 00:09 jasonjurotich

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 avatar Sep 16 '20 12:09 mjsamberg

@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 avatar Sep 17 '20 16:09 kamaln7

@kamaln7 Yeah. Looks like it only works with certain content frames :/

mjsamberg avatar Sep 25 '20 19:09 mjsamberg

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)

KR-78 avatar Sep 27 '20 02:09 KR-78

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.

perelin avatar Oct 08 '20 13:10 perelin

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?

truePhilipp avatar Oct 10 '20 16:10 truePhilipp

What about including a polyfill for those in some global file from code-server? Or fwding them manually.

TobiaszCudnik avatar Oct 10 '20 16:10 TobiaszCudnik

@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.

danielsteiner avatar Oct 12 '20 11:10 danielsteiner

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 :)

perelin avatar Oct 21 '20 07:10 perelin

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.

j7w2 avatar Nov 03 '20 02:11 j7w2

+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.

mgguinne avatar Nov 15 '20 06:11 mgguinne

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 avatar Nov 21 '20 04:11 pierremtb

@pierremtb the scrolling also doesnt work in codespaces (I checked), so Im sure the fix will come from the upstream eventually...

TobiaszCudnik avatar Nov 21 '20 05:11 TobiaszCudnik

@TobiaszCudnik thanks for checking, feels like good news to me!

pierremtb avatar Nov 21 '20 10:11 pierremtb

The VSCode Issue: https://github.com/microsoft/vscode/issues/106232

JPyke3 avatar Nov 21 '20 10:11 JPyke3

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

dollthing avatar Dec 12 '20 02:12 dollthing

Any update?

SIXSIXSIXX avatar Jan 06 '21 12:01 SIXSIXSIXX

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.

petemill avatar Jan 06 '21 15:01 petemill

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

imownbey avatar Jan 06 '21 15:01 imownbey