pedrovgs / DraggablePanel

Android library used to create an awesome Android UI based on a draggable element similar to the last YouTube graphic component.
Apache License 2.0
2.99k stars 606 forks source link

Need to define a minimum threshold for horizontal drag when minimized #85

Open tuncaulubilge opened 8 years ago

tuncaulubilge commented 8 years ago

Right now, "drag up to maximise" gesture has an small glitch, affecting user experience. In order to maximise, you have to drag the view directly up with zero movement on the X-axis, otherwise you initiate a horizontal drag instead of a vertical one.

I tried the youtube app side by side with my own app using draggable panel. In the youtube app, maximize gesture works perfectly when I drag the view vertically. The way they achieve this is with a minimum movement threshold on the horizontal axis. So unless you drag the view horizontally for a few inches, it doesn't initiate the horizontal drag. However, in draggablePanel, this threshold is too small.

Is there any way to configure drag gesture to define a minimum threshold for horizontal drag with this library?

pedrovgs commented 8 years ago

Hi @tuncaulubilge right now you can't configure this value. But you can send a PR with this configuration if you want :)

oiramcro commented 7 years ago

Hi, please implement this since this I quite annoying.

Thanks very much