1. 06 Jun, 2019 1 commit
  2. 04 Jun, 2019 1 commit
  3. 03 Jun, 2019 1 commit
  4. 31 May, 2019 1 commit
  5. 30 May, 2019 1 commit
    • Greg Spencer's avatar
      Fix onExit calling when the mouse is removed. (#33477) · 07aede4c
      Greg Spencer authored
      This PR solves two problems: currently, the onExit is called for a mouse pointer the moment the removal message is received, except that by the time it actually calls it, there is no _lastEvent for it in the mouse tracker (it's already been removed), resulting in an event being passed to the onExit that contains nulls for the position. Also, removePointer events don't actually get created with a position, although they easily could be, so that even the the _lastEvent in the mouse tracker were still populated, it would still give a null position and delta.
      
      This PR adds support for the position and delta in a PointerRemovedEvent, and populates them. In addition, when a remove event is received, it doesn't actually remove the pointer until the mouse position check that gets scheduled actually happens.
      07aede4c
  6. 25 May, 2019 2 commits
  7. 20 May, 2019 1 commit
  8. 14 May, 2019 3 commits
  9. 09 May, 2019 2 commits
    • Michael Goderbauer's avatar
    • Greg Spencer's avatar
      Fix nested listeners so that ancestor listeners can also receive enter/exit/move events. (#32350) · aeccd6a8
      Greg Spencer authored
      This changes Listener to trigger enter/move/exit in all Listeners below the pointer, not just the leaf region (the first region hit). This is because we need to allow listeners to be nested so that, say, a widget that handles changing color on hover, but also is wrapped in a Tooltip (that handles hover) can trigger both actions, not just one.
      
      To that end, I added a findAll to Layer, similar to the existing find method that was previously used. It returns an iterator over annotated layers which match the given data type.
      
      Since the findAll is implemented as returning an Iterable (and is sync*), I re-implemented the find routines as just returning the first result from findAll, since that should be just as efficient, and would then prevent duplication in the implementation.
      aeccd6a8
  10. 03 May, 2019 1 commit
  11. 01 May, 2019 1 commit
  12. 30 Apr, 2019 1 commit
    • Tong Mu's avatar
      Redo: Add buttons to gestures (#31819) · fea2c7d6
      Tong Mu authored
      * Revert "Revert "Add buttons to gestures (#30339)" (#31801)"
      
      This reverts commit 8fd7fa49.
      
      * Synthesise kPrimaryButton for unknown devices
      
      * Change TestPointer to a better API
      fea2c7d6
  13. 29 Apr, 2019 2 commits
  14. 22 Apr, 2019 1 commit
  15. 11 Apr, 2019 1 commit
  16. 05 Apr, 2019 1 commit
  17. 04 Apr, 2019 2 commits
    • Tong Mu's avatar
      Touching the screen adds `0x01` to buttons (#30457) · 13101c1a
      Tong Mu authored
      * Add constants `kPrimaryButton`, `kTouchContact` and `kStylusContact`
      * PointerDownEvent and PointerMoveEvent will always set the 0x01 bit on buttons
      13101c1a
    • Tong Mu's avatar
      Fix edge cases of PointerEventConverter (#29998) · 423cf223
      Tong Mu authored
      * Fix: ui.PointerChange.remove might contain position change, but we used to expand it into a Cancel and Remove, neither of which allows position change. A Hover event is added, and a test is updated accordingly.
      * Fixed the issue where a PointerMoveEvent and a PointerCancelEvent do not receive the correct pressure.
      * Refactor the calculation of delta into deltaTo.
      423cf223
  18. 27 Mar, 2019 1 commit
  19. 11 Mar, 2019 1 commit
    • stuartmorgan's avatar
      Add support for scrollwheels (#22762) · 5922a40e
      stuartmorgan authored
      Adds support for discrete scroll events, such as those sent by a scroll wheel.
      
      Includes the plumbing to convert, dispatch, and handle these events, as well as
      Scrollable support for consuming them.
      5922a40e
  20. 09 Mar, 2019 1 commit
  21. 06 Mar, 2019 1 commit
    • Tong Mu's avatar
      Add minimum time gap requirement to double tap (#28749) · 2e1a8c74
      Tong Mu authored
      * First impl with StopwatchWithZone
      
      * Clean up params and name
      
      * Remove outdated TODO
      
      * Fix style
      
      * Fix a missing param. Add @require
      
      * Fix import meta
      
      * Fix code style
      
      * Add missing require. Fix comment style.
      
      * Fix code style
      
      * Fix code style
      2e1a8c74
  22. 01 Mar, 2019 2 commits
  23. 27 Feb, 2019 1 commit
  24. 26 Feb, 2019 1 commit
  25. 25 Feb, 2019 2 commits
  26. 21 Feb, 2019 1 commit
  27. 20 Feb, 2019 1 commit
  28. 13 Feb, 2019 1 commit
  29. 12 Feb, 2019 1 commit
  30. 29 Jan, 2019 1 commit
    • Greg Spencer's avatar
      Implement hover support for mouse pointers. (#24830) · 1811d574
      Greg Spencer authored
      This implements support for hovering mouse pointers, so that mice connected to Android devices, and ChromeOS devices running Android apps will work properly.
      
      It teaches flutter_test about hover events, which required changing how they are created and used.
      
      Also modifies AnnotatedRegion to allow a region that can be located someplace other than just the origin.
      
      Along with tests for all of the above.
      
      Fixes #5504
      1811d574
  31. 18 Jan, 2019 1 commit
  32. 09 Jan, 2019 1 commit