dekatotoro/SlideMenuControllerSwift

handleRightPanGesture/ handleLeftPanGesture calls not stable

Open

#170 geöffnet am 23. Mai 2016

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Swift (748 Forks)github user discovery
help wanted

Repository-Metriken

Stars
 (3.379 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Hello, I modified the sample app and changed the width of right/ left view controller.

` let slideMenuController = ExSlideMenuController(mainViewController:nvc, leftMenuViewController: leftViewController, rightMenuViewController: rightViewController) slideMenuController.automaticallyAdjustsScrollViewInsets = true slideMenuController.delegate = mainViewController self.window?.backgroundColor = UIColor(red: 236.0, green: 238.0, blue: 241.0, alpha: 1.0) self.window?.rootViewController = slideMenuController

    slideMenuController.changeRightViewWidth(340.0)
    slideMenuController.changeLeftViewWidth(340.0)

`

  1. Swiping right-left 30 px from the edge (Works)
  2. Swiping left-right 30 px from the edge (Doesn't work)
  3. Swipe right-left 50 px from the edge (handleRightPanGesture get called)
  4. Swipe left-right 50-100 px range from the edge (Sometimes handleRightPanGesture gets called)

If I change the width of right/ left VC in "SlideMenuOptions" struct then it works fine.

Please let me know if anyone else faced this and has a solution?

Thanks.

Contributor Guide