mutualmobile / MMDrawerController

A lightweight, easy to use, Side Drawer Navigation Controller
MIT License
6.76k stars 1.38k forks source link

How to enable pan vertically on center view? #122

Open liuziwei opened 11 years ago

liuziwei commented 11 years ago

Hi, what is the best way to do the following things?

on center view, pan horizontally should open left or right side drawer, pan vertically will trigger another custom event (such as a label on center view update it's value by pan up or pan down, because the label's value is change continuously by the pan gesture's distance,so I need to detect pan, not swipe )

Now my solution is: setOpenDrawerGestureModeMask to none, and define custom pan event handler. But I think maybe there is simple way for mmdrawer to differentiate pan direction on center view ?

antonholmquist commented 11 years ago

I've addressed this issue in pull request: https://github.com/mutualmobile/MMDrawerController/pull/133

It may help you.