mutualmobile / MMDrawerController

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

Pan recognize in landscape mode #150

Closed rermolov closed 10 years ago

rermolov commented 10 years ago

Hello! I am using MMDrawerController without UINavigationBar in landscape mode. Controller has center view and right drawer. openDrawerGestureModeMask setted to MMOpenDrawerGestureModeAll, closeDrawerGestureModeMask setted to MMCloseDrawerGestureModeAll. When I am trying to slide from point in center or bottom, it works properly. But when i am trying to slide from point on top, nothing happened.

I create test app to demonstrate this problem (https://mega.co.nz/#!6AVgmLST!RfwCfU6fUpeMtlQVtlPl4XHn54wObT3Q8v4OxpvgYrY)

If i am trying to slide from point on green view: 1

If i am trying to slide from point on yellow view, nothing happened: 2013-10-16 13 59 28

I found cause of problem (MMDrawerController.m, panGestureCallBack): CGPoint translatedPoint = [panGesture translationInView:self.centerContainerView];

translatedPoint is zero, when i am trying to slide from point on top and non-zero on center and bottom.

Any ideas?

kcharwood commented 10 years ago

Could you push that example up so I could help debug it?

rermolov commented 10 years ago

You can download it here: https://mega.co.nz/#!6AVgmLST!RfwCfU6fUpeMtlQVtlPl4XHn54wObT3Q8v4OxpvgYrY

kcharwood commented 10 years ago

In the example you posted, I am able to drag close the center using the yellow bar in Landscape. Am I misunderstanding your issue?