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 rangemode update #791

Closed

Conversation

wsdwsd0829
Copy link
Contributor

This test fails as I debug PR #788 .
What I found is by adding “[[NSRunLoop mainRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.001]];” to run the test beyond one runloop, the test "-
(void)testInitialRangeBounds" will fail.
It's because rangeController update more than once with _preserveCurrentRangeMode == NO and results in rangeMode set to Full instead of Minimum and thus change tuningParameter also.
This pr will solve by preventing the change of rangeMode until user has actually make scroll.
(Thanks Scott for helping out)

@ghost
Copy link

ghost commented Feb 5, 2018

1 Warning
⚠️ Any source code changes should have an entry in CHANGELOG.md or have #trivial in their title.

Generated by 🚫 Danger

@wsdwsd0829 wsdwsd0829 closed this Feb 5, 2018
@wsdwsd0829
Copy link
Contributor Author

duplicate with #790

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.

1 participant