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

Fixing viewport resizing not always working due to improperly calling timer. #247

Merged
merged 1 commit into from
Jun 6, 2023
Merged

Conversation

mcottontensor
Copy link
Contributor

Relevant components:

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

Problem statement:

Sometimes when resizing the viewport with the match viewport resolution option turned on, the application will not properly resize. See #239

Solution

When the resize event comes in too fast, the resize is offloaded to a timer but the timer was not properly calling the resize function. This just fixes the call. The times have also been slightly adjusted to make it feel a little more responsive.

@mcottontensor mcottontensor requested a review from lukehb June 6, 2023 06:12
@lukehb lukehb linked an issue Jun 6, 2023 that may be closed by this pull request
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.

Approved.

@lukehb lukehb merged commit 7732b32 into EpicGames:master Jun 6, 2023
@mcottontensor mcottontensor deleted the gh239 branch June 14, 2023 03:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] - Frontend - Feature MatchViewportRes not quite working.
2 participants