Fixed the CSS hover test for the right-click event

When using a real right-click, browsers will open the context menu and the
mouse will be over the menu rather than over the element. This prevents
the hover styles from being applied.
Merge pull request #544 from stof/rightclick_hover

Fixed the CSS hover test for the right-click event