• xubaolin's avatar
    [New feature]Introduce iOS multi-touch drag behavior (#141355) · c83237f3
    xubaolin authored
    Fixes #38926
    
    This patch implements the iOS behavior pointed out by @dkwingsmt at #38926 , which is also consistent with the performance of my settings application on the iPhone.
    
    ### iOS behavior (horizontal or vertical drag)
    
    ## Algorithm
    When dragging: delta(combined) = max(i of n that are positive) delta(i) - max(i of n that are negative) delta(i)
    It means that, if two fingers are moving +50 and +10 respectively, it will move +50; if they're moving at +50 and -10 respectively, it will move +40.
    
    ~~TODO~~
    ~~Write some test cases~~
    c83237f3
Name
Last commit
Last update
..
arena_test.dart Loading commit data...
debug_test.dart Loading commit data...
double_tap_test.dart Loading commit data...
drag_test.dart Loading commit data...
events_test.dart Loading commit data...
force_press_test.dart Loading commit data...
gesture_binding_resample_event_on_widget_test.dart Loading commit data...
gesture_binding_resample_event_test.dart Loading commit data...
gesture_binding_test.dart Loading commit data...
gesture_config_regression_test.dart Loading commit data...
gesture_tester.dart Loading commit data...
hit_test_test.dart Loading commit data...
locking_test.dart Loading commit data...
long_press_test.dart Loading commit data...
lsq_solver_test.dart Loading commit data...
monodrag_test.dart Loading commit data...
multidrag_test.dart Loading commit data...
multitap_test.dart Loading commit data...
pointer_router_test.dart Loading commit data...
pointer_signal_resolver_test.dart Loading commit data...
recognizer_test.dart Loading commit data...
resampler_test.dart Loading commit data...
scale_test.dart Loading commit data...
serial_tap_test.dart Loading commit data...
tap_and_drag_test.dart Loading commit data...
tap_test.dart Loading commit data...
team_test.dart Loading commit data...
transformed_double_tap_test.dart Loading commit data...
transformed_long_press_test.dart Loading commit data...
transformed_monodrag_test.dart Loading commit data...
transformed_scale_test.dart Loading commit data...
transformed_tap_test.dart Loading commit data...
velocity_tracker_data.dart Loading commit data...
velocity_tracker_test.dart Loading commit data...