Modernizr/Modernizr — Issue #512: Test for MediaQuery breaks events on mobile
Author: glyph-se
Created: 2012-02-29 12:27:58+00:00
State: open

Doing the test if a MediaQuery should be applied or not (Moedernizr.mq) breaks jQuery's event listeners. They work fine on the mobile before the test but after I am unable to trigger any events by touching or clicking elements on the webpage.

I have only been able to reproduce this behavior on my Nokia N9 (NokiaBrowser/8.5.0 Mobile Safari/534.13 ). I had limited access to other devices, but I didn't see this behavior in the Android Emulator and probably neither on iPhone.

Demo code here: http://pastebin.com/j3KvTj2K