Introduce InputEvent bindings in preparation for the input events spec
[WebKit-https.git] / Source / WebCore / html / shadow / MediaControlElements.cpp
index 0f495a7..b7b705e 100644 (file)
@@ -863,7 +863,7 @@ void MediaControlTimelineElement::defaultEventHandler(Event& event)
         return;
 
     double time = value().toDouble();
-    if (event.type() == eventNames().inputEvent && time != mediaController()->currentTime())
+    if ((event.isInputEvent() || event.type() == eventNames().inputEvent) && time != mediaController()->currentTime())
         mediaController()->setCurrentTime(time);
 
     RenderSlider& slider = downcast<RenderSlider>(*renderer());