Modernizr.touch and BlackBerry Browsers

If you’re using Moderinzr to detect browser support for touch events, be aware that non-touch BlackBerry devices claim to support touch events. As you might expect, the touch events are pretty much impossible to trigger on a non-touch device.

I worked around this by making the check for touch vs. non-touch browsers also test for a BlackBerry user agent string; then lumping all BlackBerry devices into the non-touch bucket (you’ll get “click” and like it). This is a bit broad, but for my simple use case it was a fine trade-off.

Feel free to post other solutions in the comments…

Comments Off on Modernizr.touch and BlackBerry Browsers

Categories Development, Mobile