matthewcheok / MCPanelViewController

Drop-in panel control for iOS with blurring background and screen-edge activation gestures.
MIT License
324 stars 25 forks source link

Limit size on gesture #14

Open mattiaaccornero opened 10 years ago

mattiaaccornero commented 10 years ago

Hi there, there is a method to stop gesture after size content is reached? Or in case, disable gesture in a choosed direction?

Thanks in advance!

abraxascorner commented 9 years ago

I have the same problem. On iPad if a user continues to scroll, size of the menu grows.

abraxascorner commented 9 years ago

@beat84

if (newWidth <= self.maxWidth) {
                [self layoutSubviewsToWidth:newWidth];
            }

I uncommented this two lines. It has some delay in animation, but the menu is not dragged outside of bounds.