| 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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 | 427 |
| 428 class PointerUpEvent extends PointerEvent<Null> { | 428 class PointerUpEvent extends PointerEvent<Null> { |
| 429 PointerUpEvent = PointerEvent; | 429 PointerUpEvent = PointerEvent; |
| 430 bool get bubbles => false; | 430 bool get bubbles => false; |
| 431 } | 431 } |
| 432 | 432 |
| 433 class PointerMovedEvent extends PointerEvent<Null> { | 433 class PointerMovedEvent extends PointerEvent<Null> { |
| 434 PointerMovedEvent = PointerEvent; | 434 PointerMovedEvent = PointerEvent; |
| 435 bool get bubbles => false; | 435 bool get bubbles => false; |
| 436 } | 436 } |
| 437 /* |
| 437 ``` | 438 ``` |
| 438 | 439 |
| 439 Wheel events | 440 Wheel events |
| 440 ------------ | 441 ------------ |
| 441 | 442 |
| 442 When a wheel input device is turned, a ``WheelEvent`` event that | 443 When a wheel input device is turned, a ``WheelEvent`` event that |
| 443 doesn't bubble is fired at the application's element tree's root node, | 444 doesn't bubble is fired at the application's element tree's root node, |
| 444 with the following fields: | 445 with the following fields: |
| 445 | 446 |
| 446 wheel: an integer assigned to this wheel by the system. The | 447 wheel: an integer assigned to this wheel by the system. The |
| (...skipping 16 matching lines...) Expand all Loading... |
| 463 x: x-position relative to the top-left corner of the | 464 x: x-position relative to the top-left corner of the |
| 464 display, in global layout coordinates | 465 display, in global layout coordinates |
| 465 | 466 |
| 466 y: x-position relative to the top-left corner of the | 467 y: x-position relative to the top-left corner of the |
| 467 display, in global layout coordinates | 468 display, in global layout coordinates |
| 468 | 469 |
| 469 Note: The only wheels that are supported are mouse wheels and physical | 470 Note: The only wheels that are supported are mouse wheels and physical |
| 470 dials. Track balls are not reported as mouse wheels. | 471 dials. Track balls are not reported as mouse wheels. |
| 471 | 472 |
| 472 ```dart | 473 ```dart |
| 474 */ |
| 473 class WheelEvent extends Event { | 475 class WheelEvent extends Event { |
| 474 Event({ this.wheel, | 476 WheelEvent({ this.wheel, |
| 475 this.delta: 0.0, | 477 this.delta: 0.0, |
| 476 this.pointer, | 478 this.pointer, |
| 477 this.x, this.y, | 479 this.x, this.y |
| 478 }): super(); | 480 }): super(); |
| 479 | 481 |
| 480 final int wheel; | 482 final int wheel; |
| 481 final double delta; // revolutions (or fractions thereof) | 483 final double delta; // revolutions (or fractions thereof) |
| 482 final int pointer; | 484 final int pointer; |
| 483 final double x; // logical pixels | 485 final double x; // logical pixels |
| 484 final double y; // logical pixels | 486 final double y; // logical pixels |
| 485 | 487 |
| 486 bool get bubbles => false; | 488 bool get bubbles => false; |
| 487 } | 489 } |
| 488 ``` | 490 ``` |
| OLD | NEW |