Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Gestures #1115

Closed
wants to merge 3 commits into from
Closed

Gestures #1115

wants to merge 3 commits into from

Conversation

bleege
Copy link
Contributor

@bleege bleege commented Mar 26, 2015

To address some #1103 #1116 issues.

@bleege bleege added this to the iOS Beta 1 milestone Mar 26, 2015
@bleege
Copy link
Contributor Author

bleege commented Mar 26, 2015

Waiting for Travis to 👍 and then will merge.

@@ -1032,10 +1032,11 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecogni

- (void)trackGestureEvent:(NSString *)gesture forRecognizer:(UIGestureRecognizer *)recognizer
{
CGPoint ptInView = CGPointMake([recognizer locationInView:recognizer.view].x, [recognizer locationInView:recognizer.view].y);
const CLLocationCoordinate2D coord = [self convertPoint:ptInView toCoordinateFromView:recognizer.view];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still going to have a performance impact, doing projection math at the Cocoa level every hit of a gesture. We may want to see if we can do this in a const method in a non-main thread.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that it can be put into a non-main UI thread, as the convertPoint method relies on [UIView convertPoint:fromView] itself.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to see if we can do this in a const method in a non-main thread.

Yeah, I meant more changing the C++ to make this safer somehow for non-main threads — like snapshotting the TransformState or something. Looking into it.

@bleege
Copy link
Contributor Author

bleege commented Mar 26, 2015

Actually will address issues in #1116

@bleege
Copy link
Contributor Author

bleege commented Mar 26, 2015

Travis approved the commits, but will do some more research into #1116 before merging.

@incanus
Copy link
Contributor

incanus commented Mar 27, 2015

Obsoleted by #1132.

@incanus incanus closed this Mar 27, 2015
@jfirebaugh jfirebaugh deleted the 1103-gesture-crash branch April 10, 2015 18:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants