Skip to main content
Solved

How to set on drag to only a single direction?

  • September 19, 2023
  • 3 replies
  • 1506 views

Niranjan2

So, I have 2 frames Game1 and Game2, I need to navigate or change the frames from game1 to game2 when the user is only swiping up and 2 to 1 when swiping down. But the frames are animating when dragged in any direction, any ideas how to do it
Here’s the file for reference

FIle

Best answer by Fernando_Lins

Unfortunately, at this time you cannot set a direction for the drag event, it is pretty much a gimmick as it stands. You could add an idea to the forum asking for drag directions or check if there is an idea for it and vote on it.

View original
This topic has been closed for replies.

Fernando_Lins

Unfortunately, at this time you cannot set a direction for the drag event, it is pretty much a gimmick as it stands. You could add an idea to the forum asking for drag directions or check if there is an idea for it and vote on it.


Celine_
Figmate
  • Community Support
  • September 20, 2023

Hi there!
As Fernando said, we can’t at this moment, but we’ll let our team knows for consideration.
I’ve found this idea that looks like similar to your feature request, feel free to vote here: Drag and Hold Interaction in Figma Prototype Mode and/or create a new feature request!


MGibson

Just chiming in to add my support for such a feature, would be great to have!

I’m wanting to incorporate a header and footer that disappears when you scroll down, but returns when you scroll up, but can’t seem to find a good way to accomplish this.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings