Skip to main content
Loc_Tran
Jan 15, 2024 9:09 AM UTC
Question

Guys, a newbie need hep, how to tap X to close the scrolling sidebar menu ›

Please search for existing topics before posting! Press 🔍 at the upper right to search.


I can not use the component sidebar to scroll

This topic has been closed for replies.

3 replies

Haroll
Figma Ambassador
Figma Ambassador
Jan 15, 2024 10:32 AM UTC

Hi @Loc_Tran
I can see from your screenshot that you connect the scrollbars of your component’s variant. What did you use? Have you try an on Drag interaction ?

Figma’s Forum Ambassador
Loc_Tran
Loc_TranAuthor
Jan 15, 2024 10:49 AM UTC

can you tell me how to make it? I want to make a scrollable sidebar that users will tap X to return to the main screen. 😦
It can scroll without “X” but when overlaps with the “X”, it cannot scroll anymore

Haroll
Figma Ambassador
Figma Ambassador
Jan 15, 2024 11:20 AM UTC

Click on one of your scrollbar interaction, then change the interaction type from On click/On tap to On drag (as shown below).
It should not be a problem with the cross icon since they don’t overlap

This solution will make the view scroll, but you will only be able to “scroll” into it by dragging the scrollbar.

Figma’s Forum Ambassador