Home Forums Porto Template horizontal scrolling on mobile devices

This topic contains 2 replies, has 2 voices, and was last updated by  brainvibes 6 months, 2 weeks ago. This post has been viewed 415 times

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10025063

    brainvibes
    Participant

    Hi Support-Team,
    when you open the site on a mobile device and you scroll down, the page seems to “swim” a little bit. What I mean is, that you can drag the page from right to left or left to right.
    I can’t see a css- or html-error that would cause this behaviour.
    Is there any possibility to avoid this behaviour?

    Thanks for your help.
    Kind Regards, Ecki Mühlhäuser


    #10025071

    Support
    Keymaster

    Hello, a few thing to try:

    – Change the viewport to:

    FROM:

    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">

    To:

    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">

    Or try this css:

    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    Best Regards,

    Jonas


    #10025072

    brainvibes
    Participant

    Hi,
    awesome, thanks a lot! Best Support I ever had.

    Best Regards, Ecki


Viewing 3 posts - 1 through 3 (of 3 total)