Index: Source/core/html/shadow/SliderThumbElement.cpp |
diff --git a/Source/core/html/shadow/SliderThumbElement.cpp b/Source/core/html/shadow/SliderThumbElement.cpp |
index 2ce78fec2a67a8f9482454c88aac3e4dbcba1a40..793a459031ae94b23c28a0857916ed490b90de3e 100644 |
--- a/Source/core/html/shadow/SliderThumbElement.cpp |
+++ b/Source/core/html/shadow/SliderThumbElement.cpp |
@@ -323,9 +323,13 @@ void SliderThumbElement::stopDragging() |
if (Frame* frame = document().frame()) |
frame->eventHandler().setCapturingMouseEventsNode(0); |
m_inDragMode = false; |
+ |
+ // Dispatch both change and input event when drag is stopped |
+ hostInput()->dispatchFormControlInputEvent(); |
+ hostInput()->dispatchFormControlChangeEvent(); |
+ |
if (renderer()) |
renderer()->setNeedsLayout(); |
- hostInput()->dispatchFormControlChangeEvent(); |
} |
void SliderThumbElement::defaultEventHandler(Event* event) |