Merge pull request #2513 from daboe01/fix-combobox-scroll-issue

Fixed: legacy scrollers were not clickable under some circumstances
This commit is contained in:
Martin Carlberg
2016-12-12 13:16:01 +01:00
committed by GitHub
+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))