Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions RSColorPicker/ColorPickerClasses/RSColorPickerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
}

CGPoint point = [touches.anyObject locationInView:self];
point = CGPointMake(point.x, point.y - 15);
[self updateStateForTouchPoint:point];

if ([self.delegate respondsToSelector:@selector(colorPicker:touchesBegan:withEvent:)]) {
Expand All @@ -427,12 +428,14 @@ - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
}

- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
CGPoint point = [[touches anyObject] locationInView:self];
CGPoint point = [touches.anyObject locationInView:self];
point = CGPointMake(point.x, point.y - 15);
[self updateStateForTouchPoint:point];
}

- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
CGPoint point = [[touches anyObject] locationInView:self];
CGPoint point = [touches.anyObject locationInView:self];
point = CGPointMake(point.x, point.y - 15);
[self updateStateForTouchPoint:point];

[self.loupeLayer disappear];
Expand Down