From 9661c75a133a4a2a9e39c3fdd9200ae0e6836185 Mon Sep 17 00:00:00 2001 From: Alex Zielenski Date: Fri, 15 Aug 2014 00:48:01 -0400 Subject: [PATCH] fix overlapping colorstops being unmovable --- ThemeEngine/src/views/CFTGradientEditor.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ThemeEngine/src/views/CFTGradientEditor.m b/ThemeEngine/src/views/CFTGradientEditor.m index 815e242..25d761a 100644 --- a/ThemeEngine/src/views/CFTGradientEditor.m +++ b/ThemeEngine/src/views/CFTGradientEditor.m @@ -587,6 +587,11 @@ - (CFTGradientStopLayer *)_addStop:(CUIPSDGradientStop *)stop colorStop:(BOOL)is [self _startObservingStop:stop]; layer.frame = CGRectMake(0, 0, kCFTStopSize, kCFTStopSize); + if (stop.isMidpointStop) + layer.zPosition = 1; + else + layer.zPosition = 1000; + if (isColorStop) { if (stop.isMidpointStop) [self.colorMidpointStopLayers addObject:layer];