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 scroll locking behavior #615

Merged
merged 3 commits into from
Feb 16, 2024
Merged

Conversation

futuretap
Copy link
Contributor

Use a separate scrollLocked var instead of abusing the scrollView's properties to store the locked state.
Fixes an issue where the scroll indicators were no longer visible because lockScrollView() was executed twice before unlockScrollView() was called (due to the user changing showsVerticalScrollIndicator mid-animation).

use a separate `scrollLocked` var instead of abusing the scrollView's properties to store the locked state;
fixes an issue where the scroll indicators were no longer visible because lockScrollView() was executed twice before unlockScrollView() was called (due to the user changing `showsVerticalScrollIndicator` mid-animation);
@scenee
Copy link
Owner

scenee commented Jan 31, 2024

Thanks for PR. I agree with the decoupling the lock flag and showsVerticalScrollIndicator parameter. I will check this later.

@scenee
Copy link
Owner

scenee commented Feb 16, 2024

I haven't found any problem on this PR. Thank you so much.

@scenee scenee merged commit 504182c into scenee:master Feb 16, 2024
21 checks passed
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