Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

PIE causing hover effect delay in IE8 #294

Open
oalberdi opened this issue Apr 16, 2014 · 1 comment
Open

PIE causing hover effect delay in IE8 #294

oalberdi opened this issue Apr 16, 2014 · 1 comment

Comments

@oalberdi
Copy link

Version of PIE 1.0.0
PIE.htc is in the root of our website and referenced from css as behavior: url(/PIE.htc);

It all works fine on every browser except on IE8, when you put your mouse onto the element the hover state happens with delay (the background color changes with delay).
Example of the code and css used: http://jsfiddle.net/hLY7V/

@lojjic
Copy link
Owner

lojjic commented Apr 18, 2014

The delay, unfortunately, is necessary. This is because PIE has to listen to mouseover/out events, and IE fires those events before the :hover styles from the CSS are applied to the element.

PIE does add a .pie_hover class to the elements on hover as well, which if you use that in your CSS should allow the hover styles to be applied sooner.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants