• Hi,

    I just notice that my popup doesn’t work on mobile but ok on desktop view.

    How can I fix it?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • sarah87

    (@sarah87)

    I had a similar issue. I changed some of the code in the anything-popup.js file to set the width and positioning based on the screen width for smaller screens.

    Replace

    formdiv.style.left = pt.x + "px";

    with

    const windowWidth = window.innerWidth;
        if (AnythingPopup_Width > windowWidth + 20) {
          formdiv.style.left = "5%";
          formdiv.style.maxWidth = "90%";
    } else formdiv.style.left = pt.x + "px";
    • This reply was modified 6 years ago by sarah87.
    • This reply was modified 6 years ago by sarah87.
    • This reply was modified 6 years ago by sarah87.
    • This reply was modified 6 years ago by sarah87.
Viewing 1 replies (of 1 total)
  • The topic ‘My popup doesn’t work on mobile’ is closed to new replies.