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 fitting #180

Merged
merged 2 commits into from Apr 2, 2019
Merged

Fix scroll fitting #180

merged 2 commits into from Apr 2, 2019

Conversation

scenee
Copy link
Owner

@scenee scenee commented Apr 1, 2019

  • Prevent an unexpected layout update
  • Fix scroll fitting to make it smooth

The KVO for `safeAreaInset` can be invoked even when new and old values
are the same value so that the surface of a floating panel sometimes
jumps in dragging by an unexpected layout update called from a
`safeAreaInset` update.
This is to prevent a surface frame jump on scroll fitting. In fact,
a scroll offset range for fitting should be -10..<0.
@scenee scenee merged commit fa586c4 into master Apr 2, 2019
@scenee scenee deleted the fix-scroll-fitting branch April 2, 2019 00:43
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.

None yet

1 participant