Commit 46f0e45b authored by Xiaoqian Dai's avatar Xiaoqian Dai Committed by Commit Bot

Fix the fling event behavior for browser window.

Currently there is no fling event for browser window in tablet mode.
We'll add fling event handling for browser window in tablet mode later.

Bug: 881618
Change-Id: I683458455449fb2fe8e903e503c49072c917dc2f
Reviewed-on: https://chromium-review.googlesource.com/1212084
Commit-Queue: Xiaoqian Dai <xdai@chromium.org>
Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#589571}
parent c6eadf90
...@@ -333,6 +333,13 @@ void WmToplevelWindowEventHandler::OnGestureEvent(ui::GestureEvent* event, ...@@ -333,6 +333,13 @@ void WmToplevelWindowEventHandler::OnGestureEvent(ui::GestureEvent* event,
case ui::ET_SCROLL_FLING_START: case ui::ET_SCROLL_FLING_START:
CompleteDrag(DragResult::SUCCESS); CompleteDrag(DragResult::SUCCESS);
// TODO(xdai): We'll do special handling in tablet mode later.
if (Shell::Get()
->tablet_mode_controller()
->IsTabletModeWindowManagerEnabled()) {
return;
}
// TODO(pkotwicz): Fix tests which inadvertently start flings and check // TODO(pkotwicz): Fix tests which inadvertently start flings and check
// window_resizer_->IsMove() instead of the hittest component at |event|'s // window_resizer_->IsMove() instead of the hittest component at |event|'s
// location. // location.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment