Commit 1b85d085 authored by chaopeng's avatar chaopeng Committed by Commit Bot

Fix the EF_PRECISION_SCROLLING_DELTA flag

The EF_PRECISION_SCROLLING_DELTA flag was fill in wrong flag in previous
CL. That will cause scroll animation.

Bug: 779372
Change-Id: I82494721d53886b7c094d6bf006b26f0b2075bd9
Reviewed-on: https://chromium-review.googlesource.com/973742Reviewed-by: default avatarSadrul Chowdhury <sadrul@chromium.org>
Commit-Queue: Jianpeng Chao <chaopeng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#544900}
parent 56141341
......@@ -163,6 +163,7 @@ IN_PROC_BROWSER_TEST_F(DirectManipulationBrowserTest, EventConvert) {
ui::MouseWheelEvent* wheel_event = event->AsMouseWheelEvent();
EXPECT_EQ(1, wheel_event->x_offset());
EXPECT_EQ(2, wheel_event->y_offset());
EXPECT_TRUE(wheel_event->flags() & ui::EF_PRECISION_SCROLLING_DELTA);
}
{
......
......@@ -1110,9 +1110,9 @@ void HWNDMessageHandler::ApplyPanGestureScroll(int scroll_x, int scroll_y) {
gfx::Point cursor_location(location);
gfx::Point cursor_root_location(root_location);
ui::MouseWheelEvent wheel_event(offset, cursor_location, cursor_root_location,
base::TimeTicks::Now(), ui::EF_NONE,
ui::EF_PRECISION_SCROLLING_DELTA);
ui::MouseWheelEvent wheel_event(
offset, cursor_location, cursor_root_location, base::TimeTicks::Now(),
ui::EF_PRECISION_SCROLLING_DELTA, ui::EF_NONE);
delegate_->HandleMouseEvent(wheel_event);
}
......
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