• Sammie Quon's avatar
    overview: Fix how multi touch works for overview drag. · c6e9dffe
    Sammie Quon authored
    Using two fingers was not restricted which brought a bunch of other bugs.
    Only allow one item to be dragged at a time. Still allows switching of
    fingers midway, so we just check the item which requests drag events is
    the same as the current drag item, instead of checking the gesture
    finger id.
    
    Test: ash_unittests WindowSelectorTest.DraggingWithTwoFingers
    Bug: 827435
    Change-Id: I2c897b1b3c483b5df7a98a658f575a6ebd706acd
    Reviewed-on: https://chromium-review.googlesource.com/988294
    Commit-Queue: Sammie Quon <sammiequon@chromium.org>
    Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#547932}
    c6e9dffe
window_selector_unittest.cc 181 KB