WordPress.org

Make WordPress Core

Changes between Version 3 and Version 4 of Ticket #29906, comment 51


Ignore:
Timestamp:
06/16/2015 02:57:05 PM (5 years ago)
Author:
stephdau
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29906, comment 51

    v3 v4  
    55Detecting touch events is all well and fine in the mobile context, but we're at a loss to detect a device that runs a standard desktop OS in combination with touch capabilities (think MS Surface, for example). This is okay in most contexts, but such a device with no other pointing device will basically be out of luck... And there's nothing we can seem to do about it via capability detection.
    66
    7 Modernizr, for example, used to document their touch detection as detecting touch (screens),but they have since moved to clarifying that they also only detect touch events (countless discussions online documenting the same reason as us as to why): see comments at https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js#L19
     7Modernizr, for example, used to document their touch detection as detecting touch (screens),but they have since moved to clarifying that they also only detect touch events (countless discussions online documenting the same reason as us as to why), and more: see comments at https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js#L19
    88
    99For the record, we also can't complement touch events detection with other parameters when the former fails, since we can't even deduct the presence of a touch screen through the user-agent string, or the like...