Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shifted tracked content by -15pt for better legibility #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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