Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix can't scroll if camera's viewport rect is modified #1029

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

forestrf
Copy link

@forestrf forestrf commented Sep 7, 2021

Description

When the camera's rect doesn't use the whole screen, scrolling snaps to one of the screen sides. This fixes it.
A quick way to view this problem is to click on the camera and change any of the viewport values. After that, swipping will stop working.

What is the current behavior?

If the camera's rect isn't the default one, the scroll on a swipe element will automatically be performed without any user input. This happens because it's assumed that the viewport matches the camera's viewport rect, but it isn't always true.

What is the new behavior?

Now swipping always works instead of only when the screen rect is ok.

Important Notes

None

Other information

None

When the camera's rect doesn't use the whole screen, scrolling snaps to one of the screen sides. This fixes it.
@stevehalliwell stevehalliwell added this to the 3.14 milestone Oct 13, 2021
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.

2 participants