[Bug 25215] New: Tweak to example 1 and what element touch-action is applied to


            Bug ID: 25215
           Summary: Tweak to example 1 and what element touch-action is
                    applied to
           Product: PointerEventsWG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Pointer Events specification
          Assignee: jrossi@microsoft.com
          Reporter: redux@splintered.co.uk
        QA Contact: public-pointer-events-bugzilla@w3.org
                CC: public-pointer-events@w3.org

Currently, example 1 starts with

  /* Disable intrinsic user agent touch behaviors (such as panning or zooming)
  that all events are given to the application instead. */

  html { 
    touch-action: none; 

Personally, I find this a little heavy-handed and "dangerous". I've usually
advocated applying touch-action (and before that, in touch events,
preventDefault) more "surgically" just to the elements where it's needed, to
avoid developers cargo-culting overly broad snippets of css/js that kill all
browser defaults for everything.

I'd suggest applying it just to the canvas element in this example.

canvas {
  touch-action: none;

You are receiving this mail because:
You are on the CC list for the bug.

Received on Monday, 31 March 2014 09:48:00 UTC