Skip to main content
Question

How do I make my scroll bar stay in place?


Jay_Cowle

Hello,
I’ve been trying to make a simple scrollable frame that includes a scroll bar.

My problem is when I stop dragging the bar it snaps to either the first or last frame position (rather than remain in place).

I’ve rebuilt it a few times and dug around on here but I feel I must be missing something obvious. Can anyone help please?

Protoype link:

Figma – 12 Apr 24
This topic has been closed for comments

4 replies

y_toku
Figmate
  • Community Support
  • 2412 replies
  • April 15, 2024

Hi there,

Thanks for reaching out. I think there are some helpful third-party tutorial on YouTube like this one:

I hope you’ll make it, but please let us know if you have further questions!

Thanks,
Toku


Jay_Cowle
  • Author
  • New Member
  • 5 replies
  • April 15, 2024

Thank you Toku.

I’ve followed this video and rebuilt my test scroll bar (see ‘2nd Try’ in the Figma file).
Here’s the latest prototype:

Figma – 12 Apr 24

I am pretty confident that this replicates what Product Sensei has done. Here I am able to scroll the bar and list. If I scroll to the bottom, and release drag, the bar and list will stay there.

My problem is: If I release the bar around half way it will snap to either the first or final frame position.

Is it possible to make a scroll bar that does not snap like this? What I want is to release drag and the scroll bar and list to retain their position.

Thank you


y_toku
Figmate
  • Community Support
  • 2412 replies
  • April 16, 2024

Hey there,

I think you’ll need more frames to have more stopping points while scrolling. I’ve put together a quick example for you below:

This isn’t the smoothest, but it should help illustrate my point. By creating more frames, you’ll have more places where the scrollbar pauses.

I hope you will be able to make it!

Thanks,
Toku


Jay_Cowle
  • Author
  • New Member
  • 5 replies
  • April 16, 2024

Thank you Toku, I was thinking this but was worried I was missing a better way. Knowing this is your recommendation I feel ok about doing it this way now. Thank you for your help.


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