• 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
..
activity_indicator.dart Loading commit data...
adaptive_text_selection_toolbar.dart Loading commit data...
app.dart Loading commit data...
bottom_tab_bar.dart Loading commit data...
button.dart Loading commit data...
checkbox.dart Loading commit data...
colors.dart Loading commit data...
constants.dart Loading commit data...
context_menu.dart Loading commit data...
context_menu_action.dart Loading commit data...
date_picker.dart Loading commit data...
debug.dart Loading commit data...
desktop_text_selection.dart Loading commit data...
desktop_text_selection_toolbar.dart Loading commit data...
desktop_text_selection_toolbar_button.dart Loading commit data...
dialog.dart Loading commit data...
form_row.dart Loading commit data...
form_section.dart Loading commit data...
icon_theme_data.dart Loading commit data...
icons.dart Loading commit data...
interface_level.dart Loading commit data...
list_section.dart Loading commit data...
list_tile.dart Loading commit data...
localizations.dart Loading commit data...
magnifier.dart Loading commit data...
nav_bar.dart Loading commit data...
page_scaffold.dart Loading commit data...
picker.dart Loading commit data...
radio.dart Loading commit data...
refresh.dart Loading commit data...
route.dart Loading commit data...
scrollbar.dart Loading commit data...
search_field.dart Loading commit data...
segmented_control.dart Loading commit data...
slider.dart Loading commit data...
sliding_segmented_control.dart Loading commit data...
spell_check_suggestions_toolbar.dart Loading commit data...
switch.dart Loading commit data...
tab_scaffold.dart Loading commit data...
tab_view.dart Loading commit data...
text_field.dart Loading commit data...
text_form_field_row.dart Loading commit data...
text_selection.dart Loading commit data...
text_selection_toolbar.dart Loading commit data...
text_selection_toolbar_button.dart Loading commit data...
text_theme.dart Loading commit data...
theme.dart Loading commit data...
thumb_painter.dart Loading commit data...
toggleable.dart Loading commit data...