How to detect if an element is swiped/dragged up or down

Hi guys,

I need your help please. I’m designing a mobile page (similar to next door app) that shows a map on the upper side of the page and a RG below it, and an icon between them.
What I’m trying to accomplish is that when the user swipes/drags that icon up, the map will be visible=false. And if the user swipes/drags this icon down the RG will be visible=false.
I have tried using the draggable plugin but the issue is that the user can drag the group to the left or to the right. Any suggestions/hints?



This topic was automatically closed after 70 days. New replies are no longer allowed.