mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
osr: win: Implement page scroll mode (fixes #3849)
This commit is contained in:
committed by
Marshall Greenblatt
parent
189b247282
commit
2dd1d1f94b
@@ -203,8 +203,7 @@ ui::MouseWheelEvent CefBrowserPlatformDelegateNativeAura::TranslateUiWheelEvent(
|
||||
int changed_button_flags =
|
||||
TranslateUiChangedButtonFlags(mouse_event.modifiers);
|
||||
|
||||
return ui::MouseWheelEvent(offset, location, root_location, time_stamp,
|
||||
(ui::EF_PRECISION_SCROLLING_DELTA | flags),
|
||||
return ui::MouseWheelEvent(offset, location, root_location, time_stamp, flags,
|
||||
changed_button_flags);
|
||||
}
|
||||
|
||||
@@ -266,6 +265,13 @@ int CefBrowserPlatformDelegateNativeAura::TranslateUiEventModifiers(
|
||||
if (cef_modifiers & EVENTFLAG_IS_REPEAT) {
|
||||
result |= ui::EF_IS_REPEAT;
|
||||
}
|
||||
if (cef_modifiers & EVENTFLAG_PRECISION_SCROLLING_DELTA) {
|
||||
result |= ui::EF_PRECISION_SCROLLING_DELTA;
|
||||
}
|
||||
if (cef_modifiers & EVENTFLAG_SCROLL_BY_PAGE) {
|
||||
result |= ui::EF_SCROLL_BY_PAGE;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user