fixed: legacy scroller was not clickable under some circumstances

This commit is contained in:
daboe01 committed 2016-11-12 23:03:45 +01:00
1 parent da0910b1e5
commit 986cccb800
1 file changed
+1 -1
+1 -1
View File
@@ -316,7 +316,7 @@ CPThemeStateScrollerKnobDark = CPThemeState("scroller-knob-dark");
// The ordering of these tests is important. We check the knob and
// page rects first since they may overlap with the arrows.
if (![self hasThemeState:CPThemeStateSelected])
if (![self hasThemeState:CPThemeStateSelected] && ![self hasThemeState:CPThemeStateScrollViewLegacy])
return CPScrollerNoPart;
if (CGRectContainsPoint([self rectForPart:CPScrollerKnob], aPoint))