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

Panning restriction #21

Open
wants to merge 1 commit into
base: master
from
Open

Conversation

@arturgrigor
Copy link

arturgrigor commented Apr 16, 2013

If you want to pan the view, the first touch needs to be contained in the panningArea, just like Google is doing with the YouTube iOS app.

… the panningArea, just like Google is doing with the YouTube iOS app.
@hyuko21
hyuko21 approved these changes Oct 8, 2019
Copy link

Paulophmp left a comment

Ok

@niyog7
Copy link

niyog7 commented Oct 25, 2019

Okk

@nerdymuslim
Copy link

nerdymuslim commented Oct 26, 2019

ok

Copy link

gabeduckham left a comment

Ok

@@ -638,6 +640,10 @@ - (void)panePanned:(UIPanGestureRecognizer *)gestureRecognizer
}
case UIGestureRecognizerStateChanged: {
CGPoint panLocationInPaneView = [gestureRecognizer locationInView:self.paneView];

// If you want to pan the view, the first touch needs to be contained in this area
if (! CGRectContainsPoint(self.panningArea, self.paneStartLocation)) return;

This comment has been minimized.

@IAmRC1
IAmRC1 approved these changes Jun 7, 2020
@IAmRC1
IAmRC1 approved these changes Jun 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

9 participants
You can’t perform that action at this time.