-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
iPad OS trackpad scroll / mouse wheel support #106232
Comments
It's a bug in webkit which doesn't sent out the right events when scrolling on the trackpad https://bugs.webkit.org/show_bug.cgi?id=210071. Currently we couldn't figure out the difference between mouse move and scroll. |
@rebornix could you update the issue's title to capture that it's not only impacting trackpad support but also mouse wheel? I do not have the permissions to do that (: Also, it is my understanding this is the main issue tracking this work (we're also tracking it on the Codespaces side). |
@VincentDondain thanks, I updated the title. |
Comment from Apple on 2020-10-21 (hopefully fix soon).
|
Hey @rebornix, it looks like the WebKit issue is now fixed: https://bugs.webkit.org/show_bug.cgi?id=210071#c34 However, I just tried on iPadOS 14.5 beta 2 and the scrolling on iPad still doesn't work. So either the fix isn't yet in iPadOS or we need some changes in VSCode. |
As in cdr/code-server#1455, you either need to scroll a little bit to hide the URL bar, or to add your Codespace to your home screen. |
I have commented on the webkit issue so we get clarity on when should this get fixed https://bugs.webkit.org/show_bug.cgi?id=210071 Also the scrolling is butter smooth with the latest update, so that improved. But the external mouse scroll still does not work. |
I have updated to latest iPadOS 14.5 beta 7 and I can verify that the issue is indeed fixed. However there are still two minor issues:
@rebornix might there be some custom editor code that is handling this which we need in more places? Might this code depend on the editor having focus? |
@isidorn Curious if you've tried it in Safari with the address bar hidden, or as a PWA (Share -> Add to Home)? So far this has been the only way I've personally been able to get scrolling working on iPadOS 14.5, even in the list view. |
@Dids thanks for tip, yes hiding the address bar would allow to scroll both the list view and the editor. |
In 14.5 it seems to work, but only if the focus is outside the list. 🤷 |
iPadOS 15 beta 3. |
same here, 12.9 5th gen, Safari - when "Shortcuts" enabled I have this annoying keyboard "helper" in the bottom of the screen but scroll does work. This helper causes vscode to shrink. In chrome scroll works with both enabled/disabled "Shortcuts" but there is a huge grey space filler at the bottom causing the vscode to shrink a little, and chrome has relevatively big address/tab bar comparing to safari also which makes the experience slightly worse. |
however the scroll does work when when vscode is working as shortcut app (Home Screen). Added: But with such setup turned out the copy paste behaves really weird, also code selection in editor does not work at all. |
IPad 12.9 fifth generation Scrolling in the file explorer works but only if the focus is not on the sidebar. Scroll has no momentum and stops abruptly when mouse scrolling stops. Changing the Safari tab layout has no effect and neither does adding the keyboard shortcuts. |
Problem persists on iPadOS 15.0.2, e.g. scrolling pubs.json is broken (even when in focus): I am going to try the PWA solution mentioned above…. |
The scrolling (by Magic keyboard's trackpad) failed in both PWA and normal mode on iPadOS 16 beta 3, make it hard to use now. |
This issue still exists on iPadOS 16 beta 4. |
Interestingly Gitpod works fine. |
On iOS 16 I have found that if you enable the shortcuts in the keyboard setting it does work However this gives the white bar at the bottom. If you go back to the keyboard setting and disable the hortcuts the white bar will go away and scroll will still work Main downside you have to do this eveytime you open the app This was accessing vscode in a pwa homescreen shortcut |
Try this: #164220 (comment) |
I can verify:
=> This is clearly an upstream issue. |
This has been completely fixed for me in iPadOS 16.4 Beta 1, including with Shortcuts off and Stage Manager on. I would move to close once 16.4 releases and someone else can verify. |
Just updated to iPadOS 16.4 Beta 3 and I can also confirm that it is working @huw, but now I've got a double cursor (the iPadOS and the VSCode one on top of each other). The scrolling is fully functional in CodeSpaces and code-server, might as well be fixed in VSCode Remote Tunnels. If I give the editor panel focus by clicking on it, I can only see the VSCode cursor. It works nonetheless! Awesome to see it finally working on my iPad after struggling for so long. |
I also upgraded my iPad to iPadOS 16.4 Beta 3 and can confirm as well that the trackpad can now be used to scroll lists and text.
I don't see this though, can you share a screenshot? |
@hediet sure! Here goes a screen capture: RPReplay_Final1678815333.mov |
Isn't this the expected behavior? |
I think there's 2 cursors, one in blue (and shorter) the other in white |
The double cursor problem is much more evident (and worse) when you select text. Not great fun. |
This issue (the trackpad scrolling) appears to be fixed - tested on 18.2. Closing this issue and leaving #177277 for the double cursor issue. |
pls see https://github.saobby.my.eu.orgmunity/t/ipados-trackpad-doesn-t-scroll/130414
The text was updated successfully, but these errors were encountered: