• 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
..
material Loading commit data...
README.md Loading commit data...
action_sheet_test.dart Loading commit data...
activity_indicator_test.dart Loading commit data...
adaptive_text_selection_toolbar_test.dart Loading commit data...
app_test.dart Loading commit data...
bottom_tab_bar_test.dart Loading commit data...
button_test.dart Loading commit data...
checkbox_test.dart Loading commit data...
colors_test.dart Loading commit data...
context_menu_action_test.dart Loading commit data...
context_menu_test.dart Loading commit data...
date_picker_test.dart Loading commit data...
debug_test.dart Loading commit data...
desktop_text_selection_toolbar_button_test.dart Loading commit data...
desktop_text_selection_toolbar_test.dart Loading commit data...
dialog_test.dart Loading commit data...
form_row_test.dart Loading commit data...
form_section_test.dart Loading commit data...
icon_theme_data_test.dart Loading commit data...
list_section_test.dart Loading commit data...
list_tile_test.dart Loading commit data...
localizations_test.dart Loading commit data...
magnifier_test.dart Loading commit data...
nav_bar_test.dart Loading commit data...
nav_bar_transition_test.dart Loading commit data...
page_test.dart Loading commit data...
picker_test.dart Loading commit data...
radio_test.dart Loading commit data...
refresh_test.dart Loading commit data...
route_test.dart Loading commit data...
scaffold_test.dart Loading commit data...
scrollbar_paint_test.dart Loading commit data...
scrollbar_test.dart Loading commit data...
search_field_test.dart Loading commit data...
segmented_control_test.dart Loading commit data...
slider_test.dart Loading commit data...
sliding_segmented_control_test.dart Loading commit data...
spell_check_suggestions_toolbar_test.dart Loading commit data...
switch_test.dart Loading commit data...
tab_scaffold_test.dart Loading commit data...
tab_test.dart Loading commit data...
text_field_restoration_test.dart Loading commit data...
text_field_test.dart Loading commit data...
text_form_field_row_restoration_test.dart Loading commit data...
text_form_field_row_test.dart Loading commit data...
text_selection_test.dart Loading commit data...
text_selection_toolbar_button_test.dart Loading commit data...
text_selection_toolbar_test.dart Loading commit data...
text_theme_test.dart Loading commit data...
theme_test.dart Loading commit data...