-
-
Notifications
You must be signed in to change notification settings - Fork 442
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
DismissOnSwipeOutsideInAllDirections #102
Comments
Have you tried something like |
Nice Jeff! I thought that the variable was an Enum. I'm coding with Swift and it works with:
but the problem is that I'm using the Tip inside a TableCell and it works with right/left swipe, but when I do an up/down swipe the table scroll but the tip doesn't close :( |
I think that will be related to having a |
I didn't verifiy that. |
Right, I suspect that the table view is intercepting the swipe (where in the other cases you mentioned it is not - which is expected behavior). I would suggest verifying if the swipe gesture is being triggered (via a breakpoint for example). I do not expect it to be a bug in AMPopTip. |
Hey @kevinfur BTW, thanks for the help @jeffscaturro-wf |
Hello @andreamazz I tried to set the delegates to the self.tableView.gestureRecognizers but I can't because it says "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'UIScrollView's built-in pan gesture recognizer must have its scroll view as its delegate.'" :( Thanks. I will keep thinking. |
Yeah @kevinfur, sorry i wasn't clear. You'll need to set the delegate on the poptip's gesture. |
I tried that also but it didn't work |
And
|
The gestures are binded to the poptip's containerView though. |
Same issue, in collection view, what to do with it? |
Setting gesture recognizers worked for me, however gesture recognizer cannot handle 4 directions - https://stackoverflow.com/questions/7420078/detect-when-uigesturerecognizer-is-up-down-left-and-right-cocos2d/7760927#7760927 |
Hello.
I'm having an issue with this feature (#42)
I need to close the PopTip if the user swipes in any direction but now it only supports one direction (up/down/right/left) in swipeRemoveGestureDirection.
Don't you think it could be useful to change it to support multiple directions? Also, maybe, add a new configuration called shouldDismissOnSwipeOutsideInAllDirections so we don't break compatibility?
Thank you.
Regards.
The text was updated successfully, but these errors were encountered: