Testing a little more and I can confirm that going back from 1.9 to 1.8.3.2 solved the problem and hover setting is working now.
If you would like to check the site, let me know how to send it to you (it is not yet in production and I wouldn’t like to share it here.)
Thanks.
Hi dingdang,
I think this is the commit that has broken things for you:
https://plugins.trac.ww.wp.xz.cn/changeset/1234541/megamenu
The touch detection JavaScript was updated because the previous function wasn’t very reliable either. It seems there is no perfect method for detecting touch properly so I’ll revert that change in 1.9.1.
In the mean time you could update to v1.9 and manually change back the isTouchDevice function to the old version, or try installing Modernizr (does your theme already have modernizr included? if so that might be the issue)
Regards,
Tom
An update – tested with other browsers and the hover setting doesn’t work with IE (11) and Chrome (45) (so it is OK only within Mozilla) – plugin version 1.8.3.2
All of this is on a PC, not touch device. I guess the plugin detects it wrong as a touch device and changes the setting to click, right?
Yes, Virtue theme has modernizr-2.7.0.min.js
Hi Dingdang,
I think modernizr might be the problem.
Please could you install the WP Rollback plugin, then use it to roll forward to version 1.9.1 (just tagged)?
Regards,
Tom
Hello Tom,
I read you first answer and I think it is my fault. Installed the latest version 1.9 and tested on a normal workstation and it works excellent (on hover).
It happened that I forgot my laptop has a touch screen and your plugin correctly identified it as a touch device and set the action on click instead hover which is correct for that environment. Just a little confusing because I’m using a mouse 🙂
Sorry if I was the reason for you to mess with the plugin. Actually the older version (1.8.3.2) couldn’t detect the touch device while in Mozilla. If you have reverted to the previous code, now it would have that problem (if a problem at all) again.
Hi Dingdang,
Does the new version, 1.9.1, automatically switch from hover to click when you view your menu on the touch screen laptop?
Regards,
Tom
Hi,
acts more like 1.8.3.2 – hover in Mozilla and Chrome, as click in IE.