| OLD | NEW |
| 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 Loading... |
| 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 ``` |
| OLD | NEW |