microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.39k stars 28.62k forks source link

Support touch scrolling #104428

Open wmertens opened 4 years ago

wmertens commented 4 years ago

Issue Type: Bug

On Linux+Wayland at least, touch can only be used to place the cursor somewhere, but you can't scroll the pane, and you can't even select (which is what I would expect if scroll wasn't working)

On top of that, if you touch an identifier, it will sometimes jump to the definition of that identifier, which is never what I want.

I like using touch to scroll, and VS Code is the only Electron app I use that has problems with this. For example, the Microsoft Teams desktop app supports touch just fine.

VS Code version: Code 1.47.3 (91899dcef7b8110878ea59626991a18c8a6a1b3e, 2020-07-23T15:51:39.791Z) OS version: Linux x64 5.7.14

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz (8 x 2958)| |GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: disabled_software
skia_renderer: disabled_off_ok
video_decode: unavailable_off
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled| |Load (avg)|1, 1, 1| |Memory (System)|15.21GB (2.92GB free)| |Process Argv|--no-sandbox| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|gnome| |XDG_CURRENT_DESKTOP|GNOME| |XDG_SESSION_DESKTOP|gnome| |XDG_SESSION_TYPE|wayland|
Extensions (64) Extension|Author (truncated)|Version ---|---|--- typingspeed|alb|0.0.2 vscode-sqlite|ale|0.8.2 Nix|bbe|1.0.1 nixfmt-vscode|bre|0.0.1 npm-intellisense|chr|1.3.0 vscode-css-modules|cli|0.2.3 gitignore|cod|0.6.0 systemd-unit-file|coo|1.0.6 vscode-markdownlint|Dav|0.36.2 vscode-eslint|dba|2.1.8 vscode-quick-select|dba|0.2.8 vscode-npm-source|dku|1.0.0 xml|Dot|2.5.1 gitlens|eam|10.2.2 EditorConfig|Edi|0.15.1 vscode-npm-script|eg2|0.3.13 prettier-vscode|esb|5.1.3 vscode-highlight|fab|1.4.1 vscode-todo-plus|fab|4.17.1 flow-for-vscode|flo|1.5.0 backticks|fra|1.6.0 vscode-php-cs-fixer|fte|0.3.0 vscode-pull-request-github|Git|0.18.0 vscode-test-explorer|hbe|2.19.1 svgeditor|hen|2.9.0 vscode-ungit|Hir|2.2.3 vscode-power-mode|hoo|2.2.0 vscode-graphviz|joa|0.0.6 svg|joc|1.3.8 docthis|joe|0.7.1 vscode-peacock|joh|3.8.0 vscode-styled-components|jpo|0.0.29 chat|kar|0.35.0 vscode-jest-test-adapter|kav|0.6.2 rainbow-csv|mec|1.7.1 git-graph|mhu|1.25.0 vscode-apache|mrm|1.2.0 vscode-docker|ms-|1.4.1 python|ms-|2020.7.96456 remote-containers|ms-|0.128.0 remote-ssh|ms-|0.51.0 remote-ssh-edit|ms-|0.51.0 remote-wsl|ms-|0.44.4 vscode-remote-extensionpack|ms-|0.20.0 hexeditor|ms-|1.2.1 js-debug-companion|ms-|1.0.2 js-debug-nightly|ms-|2020.8.1017 vsliveshare|ms-|1.0.2478 vsliveshare-audio|ms-|0.1.85 vsliveshare-pack|ms-|0.4.0 color-highlight|nau|2.3.0 vscode-jest|Ort|3.2.0 code-settings-sync|Sha|3.4.3 markdown-preview-enhanced|shd|0.5.12 indenticator|Sir|0.6.0 vscode-fileutils|sle|3.0.1 vscode-hexdump|sle|1.7.2 addDocComments|ste|0.0.8 json2yaml|tux|0.2.0 es-quotes|vil|0.2.6 babelrc|wad|1.0.0 change-case|wma|1.0.0 JavaScriptSnippets|xab|1.8.0 ReactSnippets|xab|2.4.0 (18 theme extensions excluded)
personalizedrefrigerator commented 3 years ago

Touch scrolling works fine (for me) in GNOME/X11 and KDE Plasma/X11, but not Plasma/Wayland or GNOME/Wayland.

kaofishy commented 1 year ago

Any progress on this? I can enable touch gestures on Wayland by passing --touch-events argument to underlying Electron but it would be nice if this was the default.