Change Nav Menu to "OnClick" rather than "OnMouseOver" for slide out nav menu.
Hi,
We are getting some complaints from analysts that when they are filling out forms, sometimes the nav menu pops out unexpectedly, and it is preventing / slowing down their ability to fill out forms etc.
Also sometimes it flicks on and off continuously if you put your mouse in certain places just near the nav menu.
I have spent a few hours trying to figure out how to unbind OnMouseOver event handlers and re-bind them to OnClick, but just cant seem to figure it out .
I can see the event handlers exist:
e.g.:
var dom = $(".nav_trigger")
jQuery._data(dom[0],"events")
But I cannot seem to unbind and rebind it.
Any help with this would be much appreciated.
Best Answer
-
Martin_Blomgren Customer Ninja IT Monkey ✭✭✭✭@Adrian_Paech, @Tom_Hendricks, @Leigh_Kilday, a quick hack but it seems to be working so here you go!10
Answers
This is not an answer, but maybe it will spur further discussion. A quick look at that element does not reveal any mouseover/mouseout events to me, so it might be rolled up to a parent node.
I would like to see this being an optional setting in Admin Settings.
However, I am perfectly happy with a vanilla version that is one setting for all users, first, if that makes it more feasible to implement.
https://community.cireson.com/discussion/2019/change-nav-menu-to-onclick-rather-than-onmouseover-for-slide-out-nav-menu/p1?new=1
Gets my vote ..
But in the meantime it would be great if someone could provide some JS code to assist with making this adjustment (if possible )...
Cheers,
Adrian
Awesome!
Thanks Martin, that's perfect .
Much appreciated.