Jumpy page on mobile phone

3 replies·opened Oct 8, 2019
S
supermanageOct 8, 2019

Hello i have installed the cafe demo but have replaced the revolution slider with canvas slider with this markup after the header:

<section id="slider" class="slider-element force-full-screen swiper_wrapper full-screen clearfix">
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide dark" style="background-image: url('images/main/inside-asian-spice-tandoori-dark.jpg'); background-position: center top;">
                <div class="container clearfix">
                <div class="slider-caption">
                <h2 class="display-2 mb-0 color">Asian Spice</h2>
				<h3 class="mb-2">Tandoori Restaurant</h3>
                <p data-animate="fadeInUp" data-delay="200">Dine in space for over 100 diners! Perfect for any occasion call: <a href="#">0118 945 5595</a> or <a href="#">0118 945 3334</a></p>
				<a href="#section-reserve" class="button button-border button-rounded button-large button-light" data-scrollto="#section-reserve" data-offset="5">Book a table!</a>
                </div>
                </div>        
            </div>
        </div>
    </div>
</section>

This is fine on big screen browsers and even responsive design mode, but on real mobiles there is a jump when I scroll down. You can see a live version here:
http://webdm.co.uk/ast/

Maybe I have an extra class somewhere that is causing this, I tried the to clear it with the <div class="clear"></div> but that didn't solve it.

Cheers

S
SemiColonWebSTAFFOct 9, 2019

Hello,

This actually is caused by the Resizing Address Bar of the Browser of your Mobile Device which causes the Slider to resize as it is Full Screen. To disable this, simply find and delete the SEMICOLON.initialize.fullScreen(); Function Block from the SEMICOLON.documentOnResize > init: function() Function Block in the js/functions.js File.

This should definitely fix your issue. Hope this Helps!

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

S
supermanageOct 10, 2019

Great yep that sorted it, will removing this line cause any other issues?
Thanks

S
SemiColonWebSTAFFOct 11, 2019

Hello,

Not really. Only the Full Screen functionality will not work on Resize. But that would not affect most users since they will ideally load your website using only 1 device and resize it.

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