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

Side by Side Diff: sky/specs/pointer.md

Issue 939043004: Specs: fix copypasta in the WheelEvent constructor (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 months 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Pointer Events 1 Pointer Events
2 ============== 2 ==============
3 3
4 Scope 4 Scope
5 ----- 5 -----
6 6
7 The following input devices are supported by sky: 7 The following input devices are supported by sky:
8 - fingers on multitouch screens 8 - fingers on multitouch screens
9 - mice, including mouse wheels 9 - mice, including mouse wheels
10 - styluses on screens 10 - styluses on screens
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 display, in global layout coordinates 464 display, in global layout coordinates
465 465
466 y: x-position relative to the top-left corner of the 466 y: x-position relative to the top-left corner of the
467 display, in global layout coordinates 467 display, in global layout coordinates
468 468
469 Note: The only wheels that are supported are mouse wheels and physical 469 Note: The only wheels that are supported are mouse wheels and physical
470 dials. Track balls are not reported as mouse wheels. 470 dials. Track balls are not reported as mouse wheels.
471 471
472 ```dart 472 ```dart
473 class WheelEvent extends Event { 473 class WheelEvent extends Event {
474 PointerEvent({ bool bubbles, 474 Event({ this.wheel,
475 this.wheel, 475 this.delta: 0.0,
476 this.delta: 0.0, 476 this.pointer,
477 this.pointer, 477 this.x, this.y,
478 this.x, this.y, 478 }): super();
479 }): super(bubbles: bubbles);
480 479
481 final int wheel; 480 final int wheel;
482 final double delta; // revolutions (or fractions thereof) 481 final double delta; // revolutions (or fractions thereof)
483 final int pointer; 482 final int pointer;
484 final double x; // logical pixels 483 final double x; // logical pixels
485 final double y; // logical pixels 484 final double y; // logical pixels
486 485
487 bool get bubbles => false; 486 bool get bubbles => false;
488 } 487 }
489 ``` 488 ```
OLDNEW
« 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