W3C home > Mailing lists > Public > public-pointer-events@w3.org > April to June 2017

Re: [pointerevents] Enable direct pen and touch to have different touch-action behavior

From: patrick kettner via GitHub <sysbot+gh@w3.org>
Date: Tue, 09 May 2017 18:05:34 +0000
To: public-pointer-events@w3.org
Message-ID: <issue_comment.created-300252596-1494353133-sysbot+gh@w3.org>
I love the concept of allowing for different `touch-action` like behaviors for each type of pointer, but am opposed to having new `*-action` values because of the unbounded nature of future pointer types. 

This feels like the exact sort of reason `@media` blocks were invented. What about 

@media(pointer-type: touch) {
  #carousel {
    pointer-action: pan-y

@media(pointer-type: pen) {
  #carousel {
    pointer-action: none

GitHub Notification of comment by patrickkettner
Please view or discuss this issue at https://github.com/w3c/pointerevents/issues/203#issuecomment-300252596 using your GitHub account
Received on Tuesday, 9 May 2017 18:05:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 9 May 2017 18:05:42 UTC