Skip to content

I fixed your godawful touch controls#7697

Open
ifilipis wants to merge 1 commit into
utmapp:mainfrom
ifilipis:v5.0.2
Open

I fixed your godawful touch controls#7697
ifilipis wants to merge 1 commit into
utmapp:mainfrom
ifilipis:v5.0.2

Conversation

@ifilipis

@ifilipis ifilipis commented May 1, 2026

Copy link
Copy Markdown

It's a complete rewrite of everything, but I did also preserve some old code for the time being

Let's start with issues:

  • Old system had conflicts all over the place. Scroll would trigger pinch and taps all the time
  • Gesture types were very limited
  • Some recognizers were super flawed, like scroll that would only trigger if you drag it across half the screen
  • I also discovered a few undocumented and unconfigurable gestures

At the times it was so bad that I just gave up and switched to Microsoft Remote Desktop, and a lot of gestures are inspired by it. They are quite typical to Microsoft tablets as well.

The list of changes is massive

  • Old Touch mode conserved, new Multitouch mode added
  • Tap / click still works the same way!
  • 1 finger drag now does scroll and does not trigger erroneous clicks
  • Added long press with default right click. Also added a visual indicator for when it is triggered.
  • Added long press + drag for left clicking and dragging
  • 2 finger tap now uses the location of first touch for mouse position. Much easier to aim this way
  • 2 finger drag resolved conflicts with everything else and MUCH improved recognition. There's no more delay at all - it triggers instantly
  • 2 finger swipe is also resolved correctly now and is fine-tunable. It took a lot of code to distinguish it from 2F drag
  • 2 finger pinch also has a new resolver based on absolute finger travel instead of percentage to avoid erroneous triggers. This is what fixed it
  • It is also 2 fingers only now. You can't do pinch with 3 or more fingers anymore
  • Same set of fixes for 3 finger gestures + exposed 3 finger swipe in settings
  • All gestures now persist! You can't trigger different gestures after any recognizer has fired.
  • Added new types of mouse events, too. Middle drag, right drag, left drag + clicks
  • Fixed a bug with gestures near the edges of the screen. There was a border where they were blocked, I even thought there's something wrong with my iPad
  • I also played with defaults a bit. They are set to what MS RDP does at the moment
  • Nothing in the driver was changed. All fixes are in the UI

Hoping to see it in the upcoming release, because otherwise, the UX is horrible and made me dust off a MacBook, install macOS updates and Xcode for this sole purpose

@osy

osy commented May 1, 2026

Copy link
Copy Markdown
Contributor

Please confirm you have read and followed all of the contribution guidelines: https://github.com/utmapp/UTM/blob/main/CONTRIBUTING.md

@keesverruijt

Copy link
Copy Markdown

@ifilipis your PR might the most wonderful PR ever, but why the attitude? Can't you keep it civil please? Some modesty, kindness and politeness goes a long way.

@GBirkel

GBirkel commented Jun 5, 2026

Copy link
Copy Markdown

Calling software godawful and UX horrible is certainly harsh and a disservice to the effort of the authors, but I don't know if it crosses the line into uncivil... When UX has deep flaws, the frustration it causes can be really intense. :D

But it's moot. By the end of this year it's likely that every PR summary we read, everywhere on this site, will be auto-generated by LLM, and they will all sound the same, and we will not be reading words that came out of actual humans in PRs ever again. Indicators of politeness and positive attitude will become so ubiquitous they will stop having their intended effect and instead become useless bulk in the language and in due time they will be also scraped out, and PRs will consist entirely of terse bulleted lists (which is what this PR description mostly is, coincidentally)

End of an era, folks!

@ifilipis

ifilipis commented Jun 5, 2026

Copy link
Copy Markdown
Author

@GBirkel Thank you for calling my hand-written list AI-generated. Your paranoia is definitely accurate. And honestly? Enjoy the godawful UX, too!

@keesverruijt

Copy link
Copy Markdown

@ifilipis You need to learn to read more carefully. @GBirkel was actually defending you somewhat IMO. He did certainly not suggest that you used AI. He suggested that soon everyone will use AI for all PRs. I don't agree with him, human only texts may become rare voices but I don't think everything will be AI, unless Github gives them an extra leg up like "PRs only allowed by AIs that follow the submission rules of the repository."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants