Giter Club home page Giter Club logo

Comments (10)

kirk avatar kirk commented on July 24, 2024

I was having the same problem. I was able to fix my issue by setting the delegate property on the panGesture.
https://github.com/Friend-LGA/LGSideMenuController/blob/master/LGSideMenuController/LGSideMenuController.m#L248
panGesture.delegate = self;

from lgsidemenucontroller.

 avatar commented on July 24, 2024

Thanks Kirk, It was working now but pangesture( slide ) to reveal the rightviewcontroller doesn't work.

from lgsidemenucontroller.

Friend-LGA avatar Friend-LGA commented on July 24, 2024

Now you can use viewController.gesturesCancelsTouchesInView = NO;

from lgsidemenucontroller.

klauslanza avatar klauslanza commented on July 24, 2024

Even after setting gesturesCancelsTouchesInView = NO, I still have problems recognising the slide gesture on a table view cell for showing UITableViewRowAction buttons.
Any idea?

from lgsidemenucontroller.

batjo avatar batjo commented on July 24, 2024

I have the same problem. Tried the following options but the swipe gesture on a uitableviewcell doesn't get recognized most of the times.

self.gesturesCancelsTouchesInView = NO;
self.leftViewSwipeGestureEnabled = NO;
self.rightViewSwipeGestureEnabled = NO;

from lgsidemenucontroller.

Ponf avatar Ponf commented on July 24, 2024

@Friend-LGA this worked for me, however if I have slider in my UITableViewCell, changing value from left to right triggers left menu opening.

from lgsidemenucontroller.

klauslanza avatar klauslanza commented on July 24, 2024

@Ponf What worked for you? @RISP solution?

from lgsidemenucontroller.

zmian avatar zmian commented on July 24, 2024

@klauslanza @Ponf @RISP I had the same problem. I just submitted pull request #39 to fix this.

from lgsidemenucontroller.

Ponf avatar Ponf commented on July 24, 2024

@zmian I've made it in a bit simpler way: I have created protocol LGSideMenuViewControllerDelegate and implemented it in my code. And I'm asking in UIGestureRecognizerDelegate if it should be cancelled from delegate:

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
    if (gestureRecognizer == _panGesture) {
        return [_delegate shouldHandlePanRecognizerTouch:touch];
    }
    return ([touch.view isEqual:_rootViewCoverViewForLeftView] || [touch.view isEqual:_rootViewCoverViewForRightView]);
}

from lgsidemenucontroller.

rabehssera avatar rabehssera commented on July 24, 2024

Can we include the Pull request #39 in the next release ?

Thanks

from lgsidemenucontroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.