1. 08 Sep, 2020 1 commit
    • Jonah Williams's avatar
      [framework] make hit slop based on device pointer kind for drag/pan/scale gestures (#64267) · 29898812
      Jonah Williams authored
      Currently the framework uses fairly large "hit slop" values to disambiguate taps from drags/pans. This makes sense on touch devices where the interaction is not very precise, on mice however it can feel as if the UI is lagging. This is immediately noticeable on our infra dashboard, where it takes almost half of a grid square of drag before the actual drag kicks in.
      
      One potential solution is to always use smaller constants depending on whether the interaction is mouse or touch based. The only reasonable choice is to use the pointer device kind and not target platform - same platform can have different input sources. This requires exposing the pointer device kind in a few new places in several of the gesture detectors, and using the enum to compute the correct hit slop from an expanded set of constants.
      
      This almost works, however there are a few places (notably ListViews) which uses the touch hit slop as a default value in scroll physics. It does not seem like it will be easy to disambiguate a user provided scroll physics constant from the default and/or adjust it somehow - this might require significant changes to scroll physics which I have left out of this PR.
      
      This PR does not adjust:
      
      kTouchSlop used in scroll_physics.dart's minFlingDistance
      kTouchSlop used in PrimaryPointerGestureRecognizer/LongPressGestureRecognizer
      29898812
  2. 28 Jul, 2020 1 commit
  3. 11 Jun, 2020 1 commit
  4. 06 May, 2020 1 commit
  5. 27 Nov, 2019 1 commit
    • Ian Hickson's avatar
      License update (#45373) · 449f4a66
      Ian Hickson authored
      * Update project.pbxproj files to say Flutter rather than Chromium
      
      Also, the templates now have an empty organization so that we don't cause people to give their apps a Flutter copyright.
      
      * Update the copyright notice checker to require a standard notice on all files
      
      * Update copyrights on Dart files. (This was a mechanical commit.)
      
      * Fix weird license headers on Dart files that deviate from our conventions; relicense Shrine.
      
      Some were already marked "The Flutter Authors", not clear why. Their
      dates have been normalized. Some were missing the blank line after the
      license. Some were randomly different in trivial ways for no apparent
      reason (e.g. missing the trailing period).
      
      * Clean up the copyrights in non-Dart files. (Manual edits.)
      
      Also, make sure templates don't have copyrights.
      
      * Fix some more ORGANIZATIONNAMEs
      449f4a66
  6. 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
  7. 25 Feb, 2019 1 commit
    • jslavitz's avatar
      Breaks the moveBy call from drag and dragFrom into two separate calls and... · 47724f97
      jslavitz authored
      Breaks the moveBy call from drag and dragFrom into two separate calls and changes the default behavior of DragStartBehavior to DragStartBehavior.start (#26438)
      
      * Breaking change which sets the default DragStartBehavior to DragStartBehavior.start and changes WidgetTester.drag and WidgetTester.dragFrom by breaking the moveBy function call into multiple pieces.
      47724f97
  8. 02 Aug, 2018 1 commit
  9. 27 Jul, 2018 1 commit
  10. 23 Jul, 2018 1 commit
  11. 16 Jul, 2018 2 commits
  12. 02 Feb, 2018 1 commit
  13. 27 Jul, 2017 1 commit
    • Ian Hickson's avatar
      Increase the touch slop. (#11419) · 87445e59
      Ian Hickson authored
      It was 8.0. It's now arbitrarily 18.0.
      
      Changing this required adjusting some tests. Adjusting the tests
      required debugging the tests. Debugging the tests required some tools
      to help debugging gesture recognizers and gesture arenas, so I added
      some. It also required updating some toString() methods which resulted
      in some changes to the tree diagnostics logic.
      
      Also I cleaned up some docs while I was at it.
      87445e59
  14. 01 Nov, 2016 1 commit
  15. 22 Mar, 2016 1 commit
  16. 04 Nov, 2015 1 commit
    • Hixie's avatar
      Fix double tap constants, add a doubletap test · 7925e060
      Hixie authored
      Document the Gesture Detector constants.
      
      Remove kEdgeSlop since it's obsolete on Android.
      
      Add a test that verifies that when the first tap is canceled, the second
      tap can become the first tap of a subsequent two-tap sequence.
      7925e060
  17. 03 Nov, 2015 1 commit
  18. 26 Oct, 2015 1 commit
  19. 17 Sep, 2015 3 commits
  20. 16 Sep, 2015 2 commits
  21. 09 Sep, 2015 1 commit
    • Hans Muller's avatar
      Initial support for the fling gesture detector · 67410a5a
      Hans Muller authored
      Added FlingGestureRecognizer and exposed it in the GestureDetector class. FlingGestureRecognizer is based on the Android/Chromium VelocityTracker class which computes a velocity vector for for a list of X,Y,Time tuples.
      
      The Scrollable classes now use the FlingGestureRecognizer. Dismissable and Drawer still need to be updated
      67410a5a
  22. 28 Aug, 2015 1 commit