Skip to main content
Solved

Prototype hotspots trigger from underneath a fixed element


Edyn_McCarty

Hi,

I’m working on a lofi prototype that has a simple navigation bar fixed at the bottom of the screen with scroll-able menu options above it. I’ve noticed in the preview that when the scrolling menu items are behind the navigation bar, the items can still be selected even though the nav bar is covering them from view. This makes it difficult to select objects on the nav bar and doesn’t sync up with what the real product would be like.

How can I prevent these items from triggering when they’re behind the fixed elements?

Best answer by Haroll

Hi @Edyn_McCarty
You can use Auto-layout and clip content so your content won’t be available when not displayed

  1. view is an auto-layout with a vertical layout
  2. nav and content are inside view
    content’s height is set to fill (take all the height available)
    and nav rest at the bottom having a height set to hug (take what needed)
  3. select content and from design panel : check clip content
    then from prototype panel set overflow to vertical

as shown on the image below, when launching the prototype, clickable section from content do not overlaps with nav

let me know if it helped

View original

3 replies

Haroll
  • Active Member
  • 273 replies
  • Answer
  • December 7, 2023

Hi @Edyn_McCarty
You can use Auto-layout and clip content so your content won’t be available when not displayed

  1. view is an auto-layout with a vertical layout
  2. nav and content are inside view
    content’s height is set to fill (take all the height available)
    and nav rest at the bottom having a height set to hug (take what needed)
  3. select content and from design panel : check clip content
    then from prototype panel set overflow to vertical

as shown on the image below, when launching the prototype, clickable section from content do not overlaps with nav

let me know if it helped


Edyn_McCarty

Thanks Haroll!

This does seem to work, although it’s a bit annoying with editing the content of the scrollable view.


Haroll
  • Active Member
  • 273 replies
  • December 20, 2023

When I have to work on long-scrolling view like that I do make the content a component and use a instance of it into my prototype view so I’m able to edit anything in the component and see change live on the prototype


Reply


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