Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1268)

Unified Diff: sky/specs/ui.md

Issue 771603004: Specs: some slight updates for styluses (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/ui.md
diff --git a/sky/specs/ui.md b/sky/specs/ui.md
index 91951d24e6823347ee8ae135cef10b5969e3f315..b4ac09fcb29ffbf1b79da581fb4b8ce7a2a2cfed 100644
--- a/sky/specs/ui.md
+++ b/sky/specs/ui.md
@@ -58,6 +58,12 @@ the application's document.
When it is removed, a 'pointer-removed' event is fired at the
application's document.
+A pointer switches from "up" to "down" when it is a touch or stylus
+that is in contact with the display surface, or when it is a mouse
+that is being clicked, and from "down" back to "up" when this ends.
+(Note that clicking a button on a stylus doesn't change it from up to
+down. A stylus can have a button pressed while "up".)
+
When one switches from "up" to "down", the position of the tap is hit
tested and a 'pointer-down' event is fired at the target element under
the cursor, if any, or the document otherwise. The return value, if
@@ -129,6 +135,9 @@ fields:
(n-4)th stylus button, again ignoring any
explictly back or forward buttons
+ note that stylus buttons can be pressed even when the
+ pointer is not "down"
+
down: true if the pointer is down (in pointer-down event or
subsequent pointer-move events); false otherwise (in
pointer-added, pointer-up, and pointer-removed
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698