summaryrefslogtreecommitdiffstats
path: root/mojo
diff options
context:
space:
mode:
authorsky <sky@chromium.org>2015-04-01 11:03:34 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-01 18:04:24 +0000
commit5cc50da20adb781970fc495d324c30eb40cb31c4 (patch)
tree448c5b3b2c59bf7f891a685ccd4fda86dba25311 /mojo
parent04f9de655915bfaf9fa2c90ee4848452ca71d89f (diff)
downloadchromium_src-5cc50da20adb781970fc495d324c30eb40cb31c4.zip
chromium_src-5cc50da20adb781970fc495d324c30eb40cb31c4.tar.gz
chromium_src-5cc50da20adb781970fc495d324c30eb40cb31c4.tar.bz2
Fixes action index of MotionEvent
R=erg@chromium.org Review URL: https://codereview.chromium.org/1047423002 Cr-Commit-Position: refs/heads/master@{#323285}
Diffstat (limited to 'mojo')
-rw-r--r--mojo/services/html_viewer/touch_handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/mojo/services/html_viewer/touch_handler.cc b/mojo/services/html_viewer/touch_handler.cc
index 8e09ad1..6261dab 100644
--- a/mojo/services/html_viewer/touch_handler.cc
+++ b/mojo/services/html_viewer/touch_handler.cc
@@ -126,7 +126,7 @@ bool TouchHandler::UpdateMotionEvent(const mojo::Event& event) {
}
current_motion_event_->pointer(index) = properties;
current_motion_event_->set_action(ui::MotionEvent::ACTION_MOVE);
- current_motion_event_->set_action_index(0);
+ current_motion_event_->set_action_index(static_cast<int>(index));
return true;
}