Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1179)

Unified Diff: Source/core/html/shadow/MediaControlElements.cpp

Issue 914043002: Tap on the video element toggles controls visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased, process mouse only for non-synthetic events. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/shadow/MediaControlElements.cpp
diff --git a/Source/core/html/shadow/MediaControlElements.cpp b/Source/core/html/shadow/MediaControlElements.cpp
index c9e4573375d568b0a7b1db700132ae26b737da41..4a6bca3caa28aec3a256cd8ffbcd49461146570d 100644
--- a/Source/core/html/shadow/MediaControlElements.cpp
+++ b/Source/core/html/shadow/MediaControlElements.cpp
@@ -377,6 +377,9 @@ void MediaControlTimelineElement::defaultEventHandler(Event* event)
if (event->type() == EventTypeNames::mouseup)
mediaControls().endScrubbing();
+ if (event->type() == EventTypeNames::touchmove)
+ mediaControls().timelineKnobDragged();
philipj_slow 2015/02/16 10:45:18 Isn't this fixing an unrelated problem, perhaps th
Tima Vaisburd 2015/02/16 20:32:11 I might also say "related, but different problem".
philipj_slow 2015/02/17 02:37:24 My change was just cleanup, https://codereview.chr
+
MediaControlInputElement::defaultEventHandler(event);
if (event->type() == EventTypeNames::mouseover || event->type() == EventTypeNames::mouseout || event->type() == EventTypeNames::mousemove)

Powered by Google App Engine
This is Rietveld 408576698