Full Screen Section on Mobile Browsers

1 reply · opened Jan 16, 2017

Ccody-frewJan 16, 2017

I have a page section using the "force-full-screen full-screen" class which works good on desktop (however, sometimes the js loads slower than the page, but that's not this issue), but not on mobile.

When on a desktop browser and you make the screen smaller, it still works fine, but on an actual phone, the window size changes as you scroll because the top toolbar becomes smaller or hidden, like on Chrome or Safari. This makes the js re-calculate the window height for the full-screen section, and causes a jerking motion while you scroll up and down.

Is there any way to set the js to only calculate the window size on page load and not constantly? Or is there a better solution?

http://dabbledigital.com/


    <div class="force-full-screen full-screen dark"

Thanks!

SSemicolon WebSTAFFJan 17, 2017

Hello,

The Jerking of the Scrolling Behavior is because of the .force-full-screen Class and only happens on iOS Devices. Unfortunately, currently there is no specific solution for this as this is unexpected for Safari on iPhone to trigger the Resize Event. So, currently the only way to prevent this is by removing the .force-full-screen Class from the Slider Area and use Responsive Heights to set fixed heights. More details about how to use the Responsive Heights can be found in the Documentation > Page Elements > Useful Snippets section.

This will definitely fix the issue. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard