viezel / NappDrawer

A side drawer navigation container view controller for Appcelerator Titanium.
MIT License
248 stars 128 forks source link

iOS: Drawer OPEN_MODE_ALL makes swipes from right to left very difficult. Can we have a new type of drawer opening. #148

Open mark22 opened 9 years ago

mark22 commented 9 years ago

OPEN MODE ALL will respond to an opening gesture anywhere on the screen, which blocks swipes from right to left (needed to delete items in IOS8).

OPEN_MODE_BEZEL_PANNING_CENTERWINDOW is too restrictive, you really have to start panning from the left outer edge of the screen for it to be effective.

Can we have something in the middle? Say if a user pans from the left 50% of the screen, or 75% of the screen (there by leaving 25% of the right outer edge for right to left swipes). Best option would be to leave it to us users to define the %

caspahouzer commented 9 years ago

:+1:

viezel commented 9 years ago

Make sense. You should be able to go in and adjust the outer margin in the bezel mode. Then recompile the module. That should do it

mark22 commented 9 years ago

@viezel Thanks Mads, could you help me on where I can make that adjustment? (BTW this is Mark, the guy who kicked off this whole project :) :)

viezel commented 9 years ago

look here: https://github.com/mutualmobile/MMDrawerController/blob/master/MMDrawerController/MMDrawerController.m#L42