DraggablePanel icon indicating copy to clipboard operation
DraggablePanel copied to clipboard

Need to define a minimum threshold for horizontal drag when minimized

Open tuncaulubilge opened this issue 9 years ago • 2 comments

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?

tuncaulubilge avatar Jan 20 '16 20:01 tuncaulubilge

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

pedrovgs avatar Jan 31 '16 19:01 pedrovgs

Hi, please implement this since this I quite annoying.

Thanks very much

oiramcro avatar Oct 29 '16 06:10 oiramcro