For a while now, the trend has been leaning towards feature detection. I am interested in determining whether a visitor's browser supports the :hover pseudo class. With many mobile devices not supporting hovering, I want to adjust my event listeners accordingly. However, without mobile detection, I'm unsure how to achieve this and haven't had any luck with Google or Stack Overflow so far.
Maybe something similar to question #8981463
$(function() {
var canHover = $(document).is(":hover");
});
I won't have the opportunity to test this on a mobile device until next week.
Any thoughts?