Jump to content

Need to double-click buttons on mobile

Recommended Posts

  • 2 weeks later...
  • 1 month later...
  • 2 weeks later...
  • 2 months later...
  • 3 months later...
  • 5 weeks later...
  • 3 months later...

Guys, does somebody found a solution? It's driving me nutttts! 🤦‍♂️

I even tried JS to emit clicks, I tried to bind an automatic "double click" function to the element, … but nothing works. I think the global animation creating a stacking context issue somehow … which is magically solved after the first click on any(!!!) link. What kind of a bug is this?

Please help :)

Link to comment
  • 1 month later...
  • 1 month later...

This is a JavaScript/jQuery solution, and site-wide animations can remain enabled. Timeout is optional but will allow the animation to be visible before the page redirects.

<script>
    $('.sqs-block-button a').on('touchstart', function () {
      var href = $(this).attr('href');
      setTimeout(function(){
        window.location.href = href;
      }, 100);
    });
</script>

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.