• Ian Hickson's avatar
    Changes to the drag gesture detectors and the velocity tracker (#7363) · 11d1d54c
    Ian Hickson authored
    - more dartdocs for the drag typedefs
    
    - more toStrings to aid debugging
    
    - require the position for DragUpdateDetails since we were omitting it
      in some places
    
    - add the primaryVelocity to DragEndDetails so that consumers don't
      have to themselves track the axis in question
    
    - fix the velocity tracker so that it doesn't walk the null data.
      Previously, near time t=0 (which pretty much only matters in tests,
      but it does matter there) we would walk the velocity data and then
      also walk missing data, treating it as Point.zero with t=0.
    
    - simplify some of the velocity tracker; e.g. instead of trying (and
      failing?) to clear the velocity tracker when the pointer stalls,
      just drop the data before a stall during the velocity estimation
      (where we redundantly had another bigger horizon anyway).
    11d1d54c
Name
Last commit
Last update
.idea Loading commit data...
bin Loading commit data...
dev Loading commit data...
examples Loading commit data...
packages Loading commit data...
.analysis_options Loading commit data...
.analysis_options_repo Loading commit data...
.analysis_options_user Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
ISSUE_TEMPLATE.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
VERSION Loading commit data...