| Index: components/html_viewer/html_frame.cc
|
| diff --git a/components/html_viewer/html_frame.cc b/components/html_viewer/html_frame.cc
|
| index 4746f5d194dd0049ed68c4d7966307a11f416c15..f7bcbb27e0faf8d0d66056f84609a024a6b201b2 100644
|
| --- a/components/html_viewer/html_frame.cc
|
| +++ b/components/html_viewer/html_frame.cc
|
| @@ -461,10 +461,12 @@ void HTMLFrame::OnViewDestroyed(View* view) {
|
| void HTMLFrame::OnViewInputEvent(View* view, const mojo::EventPtr& event) {
|
| if (event->pointer_data) {
|
| // Blink expects coordintes to be in DIPs.
|
| - event->pointer_data->x /= global_state()->device_pixel_ratio();
|
| - event->pointer_data->y /= global_state()->device_pixel_ratio();
|
| - event->pointer_data->screen_x /= global_state()->device_pixel_ratio();
|
| - event->pointer_data->screen_y /= global_state()->device_pixel_ratio();
|
| + event->pointer_data->where->x /= global_state()->device_pixel_ratio();
|
| + event->pointer_data->where->y /= global_state()->device_pixel_ratio();
|
| + event->pointer_data->where->screen_x /=
|
| + global_state()->device_pixel_ratio();
|
| + event->pointer_data->where->screen_y /=
|
| + global_state()->device_pixel_ratio();
|
| }
|
|
|
| blink::WebWidget* web_widget = GetWebWidget();
|
|
|