• tdanderson's avatar
    Only target ui::ET_GESTURE_END to the default gesture handler · 906a3939
    tdanderson authored
    If no gesture handler has been established prior to RootView
    receiving a ui::ET_GESTURE_END event, do not perform any
    targeting based on the event's location (and therefore do not
    dispatch this event to any view); GESTURE_END should only
    ever be targeted and dispatched to the gesture handler set
    by a previous gesture.
    
    BUG=409918
    TEST=ViewTargeterTest.ViewTargeterForGestureEvents,
         WidgetTest.GestureBeginAndEndEvents,
         WidgetTest.DisabledGestureEventTarget
    
    Review URL: https://codereview.chromium.org/533793002
    
    Cr-Commit-Position: refs/heads/master@{#292983}
    906a3939
view_targeter_unittest.cc 19.1 KB