Index: WebCore/dom/Node.cpp |
=================================================================== |
--- WebCore/dom/Node.cpp (revision 70474) |
+++ WebCore/dom/Node.cpp (working copy) |
@@ -2992,7 +2992,7 @@ |
if (Frame* frame = document()->frame()) |
frame->eventHandler()->defaultTextInputEventHandler(static_cast<TextEvent*>(event)); |
#if ENABLE(PAN_SCROLLING) |
- } else if (eventType == eventNames().mousedownEvent) { |
+ } else if (eventType == eventNames().mousedownEvent && event->isMouseEvent()) { |
MouseEvent* mouseEvent = static_cast<MouseEvent*>(event); |
if (mouseEvent->button() == MiddleButton) { |
if (enclosingLinkEventParentOrSelf()) |