Modernizr reporting laptop as touch device in Chrome and FF

后端 未结 1 1162
盖世英雄少女心
盖世英雄少女心 2021-01-12 01:29

Bit of a weird one. I have a site I am working on. But, on my laptop (ASUS Zenbook) some of the features do not work. We spent a good amount of time using Firebug to try and

相关标签:
1条回答
  • 2021-01-12 01:40

    Unfortunately Modernizr tests for support of Touch-events in the browser, so it's not a proper test for a touch device. Last builds of Chrome and Firefox are supporting this feature.

    You can check the issue here: https://github.com/Modernizr/Modernizr/issues/548

    I'm searching for a good solution on this matter too, but the only thing I've found is this, though I haven't tested it out yet: https://stackoverflow.com/a/4819886/1262357

    If you have good results please let me know!

    0 讨论(0)
提交回复
热议问题