• 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
Name
Last commit
Last update
..
animation Loading commit data...
cupertino Loading commit data...
examples Loading commit data...
foundation Loading commit data...
gestures Loading commit data...
harness Loading commit data...
material Loading commit data...
painting Loading commit data...
physics Loading commit data...
rendering Loading commit data...
scheduler Loading commit data...
semantics Loading commit data...
services Loading commit data...
widgets Loading commit data...
flutter_test_alternative.dart Loading commit data...
flutter_test_config.dart Loading commit data...