private bool ScrollUntil(SomethingToScrollTo check, FailureToScrollHandler handler, ScrollAction action, ScrollPercentCheck percentCheck) { while (!check(this) && percentCheck()) { action(); } if (!check(this)) { handler(this); } return !check(this); }
private bool ScrollUntil(SomethingToScrollTo check, FailureToScrollHandler handler, ScrollAction action, ScrollPercentCheck percentCheck) { while (!check(this) && percentCheck()) { action(); } if (!check(this)) { handler(this); } return(!check(this)); }