Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Fix touch events not working on iOS #486

Merged
merged 1 commit into from
Feb 14, 2024
Merged

Conversation

Belchy06
Copy link
Collaborator

Relevant components:

  • Signalling server
  • Frontend library
  • Frontend UI library
  • Matchmaker
  • Platform scripts
  • SFU

Problem statement:

This PR addresses the problems identified in #376

Solution

With the removal of 3D Touch from iPhones since the iPhone XS, the force property on the Touch event always reports 0. This PR adds a simple check to see if the force is 0 for either a touch start or move, and if so it forces it to 1. This is not required on touch ends as a touch can't end with a non-zero force.

Copy link
Contributor

@lukehb lukehb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Belchy06 Belchy06 merged commit 664d40b into EpicGames:master Feb 14, 2024
3 checks passed
github-actions bot pushed a commit that referenced this pull request Feb 14, 2024
…if the touch.force member is 0 (#486)

(cherry picked from commit 664d40b)
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
UE5.4

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Belchy06 added a commit that referenced this pull request Feb 14, 2024
…if the touch.force member is 0 (#486)

(cherry picked from commit 664d40b)

Co-authored-by: William Belcher <william.belcher@xa.epicgames.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

[BUG] - Gesture interaction does not work in UE5.1 with iOS
2 participants