I always had something against
in, mainly because it sounds a bit over promising. The first time I used it I was expecting a behavior more like
includes, just because the word “in” is very suggestive to inform you whether is something
in something else that contains it.
So I just bumped into another situation where browser implementation was a bit misleading. and using
inmade it even more confusing.
Check the way Modernizer is detecting touch device here , we have the same approach implemented in our website and I was debugging that some of the mouse events weren’t firing on Firefox.
More or less here is the key part of detection,
... read the whole story at medium.com.