1. 28 Sep, 2019 3 commits
  2. 27 Sep, 2019 5 commits
  3. 26 Sep, 2019 5 commits
    • Greg Spencer's avatar
      Change the way ActionDispatcher is found. (#41245) · a0856358
      Greg Spencer authored
      This changes the way ActionDispatchers are found by the Actions widget, so that by default it will look for dispatchers of the parent Actions widgets instead of just creating a default ActionDispatcher. This allows overriding of the ActionDispatcher at the top level: before, the custom action dispatcher would only be invoked if explicitly set on all the Actions widgets.
      
      This is not a breaking change because there was a default value to the dispatcher parameter before that performed this function, and not specifying the dispatcher anywhere will still result in a default dispatcher being created.
      a0856358
    • Greg Spencer's avatar
      Added proper focus handling when pushing and popping routes (#40166) · 1a7bb1f5
      Greg Spencer authored
      The proposed change will change focus handling when pushing and popping routes so that the FocusScopeNode for the route receives focus when pushed, and that the FocusScopeNode in the navigator receives focus when the route is popped.
      
      This means that the last setFirstFocus call on the scope is used to determine which control actually receives focus. When the focus scope receives focus, it traverses its children, trying to find a non-scope node that is the "first focus" of itself or a child node.
      
      This is a breaking change, because the focus behavior has changed. If you push a route after this change, and had a 'first focus' set on a widget via FocusScopeNode.setFirstFocus, it won't currently receive focus immediately, but after this change it will. Similarly, if you pop a route after this change, the focus will go back to where it was before the route was pushed, which is correct, but different from what happens now.
      1a7bb1f5
    • Kristin Ho's avatar
      Prevent PointerEnter[or Exit]Event from erasing event.down value (#40637) (#41332) · 034358e3
      Kristin Ho authored
      * MouseRegion documentation claimed that onEnter and onExit
        would track entry and exit regardless of whether the pointer was
        down or up
      * It did such, but when grabbing the value of `event.down` from
        the passed event, the value was always `false`
      * PointerEnterEvent and PointerExitEvent were overriding the value
        passed from PointerEvent in constructors, even if the value was true
        e.g. in invocations of .fromMouseEvent((PointerMoveEvent...))
      * This change now passes the value along to PointerEnter/ExitEvents
        while providing it a default of false, and updates documentation
      
      Fixes #40637
      034358e3
    • Greg Spencer's avatar
      Fix mouse hover to not schedule a frame for every mouse move. (#41014) · 05097916
      Greg Spencer authored
      This fixes the mouse hover code to not schedule frames with every mouse move.
      
      Before this, it would schedule a post frame callback, and then schedule a frame immediately, even if there was nothing that needed to be updated. Now it will schedule checks for mouse position updates synchronously, unless there's a new annotation, and skip scheduling a new frame in all cases. It has to be async in the case of a new annotation (i.e. a new MouseRegion is added), since when the annotation is added, it hasn't yet painted, and it can't hit test against the new layer until after the paint, so in that case it schedules a post frame callback, but since it's already building a frame when it does that, it doesn't need to schedule a frame.
      
      The code also used to do mouse position checks for all mice if only one mouse changed position. I fixed this part too, so that it will only check position for the mouse that changed.
      05097916
    • Hans Muller's avatar
  4. 25 Sep, 2019 4 commits
  5. 24 Sep, 2019 9 commits
  6. 23 Sep, 2019 1 commit
  7. 20 Sep, 2019 1 commit
  8. 19 Sep, 2019 4 commits
  9. 18 Sep, 2019 5 commits
  10. 17 Sep, 2019 3 commits