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

Ensure touch is relative to absolute location of parent rect #316

Merged
merged 1 commit into from Jul 19, 2023

Conversation

StomyPX
Copy link
Collaborator

@StomyPX StomyPX commented Jul 19, 2023

Relevant components:

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

Problem statement:

#287

Solution

Fixes #287 by making touch coordinates be relative to the viewport's absolute bounding rect rather than its own stated offset

Test Plan and Compatibility

Uses a different class member to retrieve the video element's offset on screen, but the underlying logic is identical.

Tested by streaming a plain 3rd person project to an Android phone that previously reproduced the problem stated above.

Copy link
Collaborator

@Belchy06 Belchy06 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 4e370e5 into EpicGames:master Jul 19, 2023
5 checks passed
github-actions bot pushed a commit that referenced this pull request Jul 19, 2023
github-actions bot pushed a commit that referenced this pull request Jul 19, 2023
@github-actions
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
UE5.2
UE5.3

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 pushed a commit that referenced this pull request Jul 19, 2023
(cherry picked from commit 4e370e5)

Co-authored-by: Michael Stopa <michael.stopa@xa.epicgames.com>
Belchy06 pushed a commit that referenced this pull request Jul 19, 2023
(cherry picked from commit 4e370e5)

Co-authored-by: Michael Stopa <michael.stopa@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] - Touch input location is shifted when embeded in web page
2 participants