Mobile Scroll not functioning correctly
-
I think this may be Javascript related. On mobile when i’m accessing the navigation and scrolling down, the page automatically goes to whatever link your finger left off on or first touched no matter how brief.
I’m not sure if its a vmouse related issue or whats going on, but I haven’t been able to figure it out. I’d greatly appreciate it if you could take a look and let me know what you think.
Thank you,
Akeem
-
Oh I forgot to include the link, here you go:
http://strategisadv.com/pinnacle/Hi Akeem,
When you say vmouse, do you mean you’re testing with a virtual mouse?
I’m guessing you’re correct that there’s a JS issue, likely some touch code from the theme or another plugin interfering with the events on the mobile menu.
Are you running any touch libraries or code on your site that might be intercepting the events? For example, if there were an event set up to follow links when touchstart fires, that would fire before any ShiftNav scripting and override the functionality.
Chris
Hi Chris i’m not entirely sure. The vmouse issue i’m kind of guessing at through some research, but I have no idea how to write or debug for javascript.
In looking through the dev tools on firefox I see:
- click and touchend events on the links from the wr-megamenu frontend.js and the jquery 1.11.3.min library
- Above that is the li with a hover event from the jquery 1.11.3.min library
- Enclosing it as .shiftnav-inner is a touchmove and touchstart from the shiftnav.min.js and a touchmove and touchstart from the jquery 1.11.3.min library (maybe this the problem in here?)
- Outside of that in #shiftnav-main are click and mouseup events in both the shiftnav.min.js and the jquery 1.11.3.min library
Hope that helps to clarify a bit better.
Akeem
Hi Akeem,
You may want to try disabling the “Shift Body” as well as “Swipe Open” and “Swipe Close” settings, as they can sometimes interfere with the theme if it is also running touch events. Otherwise it is likely that the theme’s scripts are applying to the ShiftNav menu as well.
Best,
Chris
Thanks, I’ll give that a shot and see what happens. I appreciate the help.
Akeem
You’re welcome, Akeem, hope it helps 🙂
- The topic ‘Mobile Scroll not functioning correctly’ is closed to new replies.