Scrolling menu on iPhone

I have problem with my dropdown menu on iPhone. Whenever I have more than 6 links on my menu the list is too long and whenever I want to scroll it little bit down with finger I can’t because I press on link and its instantly fire to another url. How I can avoid that and recognize that I want to scroll menu little bit down and how to recognize if I tapped a menu li to go into another url?

$(".content-bar--content").on("click", function() {
           window.location.href = link;

This is what my code looks like.

2 thoughts on “Scrolling menu on iPhone”

Leave a Comment