diff options
Diffstat (limited to 'WebCore/platform/wx/MouseEventWx.cpp')
-rw-r--r-- | WebCore/platform/wx/MouseEventWx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/platform/wx/MouseEventWx.cpp b/WebCore/platform/wx/MouseEventWx.cpp index a02d7ba..4f39598 100644 --- a/WebCore/platform/wx/MouseEventWx.cpp +++ b/WebCore/platform/wx/MouseEventWx.cpp @@ -33,7 +33,7 @@ namespace WebCore { -PlatformMouseEvent::PlatformMouseEvent(const wxMouseEvent& event, const wxPoint& globalPoint) +PlatformMouseEvent::PlatformMouseEvent(const wxMouseEvent& event, const wxPoint& globalPoint, int clickCount) : m_position(event.GetPosition()) , m_globalPosition(globalPoint) , m_shiftKey(event.ShiftDown()) @@ -67,7 +67,7 @@ PlatformMouseEvent::PlatformMouseEvent(const wxMouseEvent& event, const wxPoint& if (m_eventType == MouseEventMoved) m_clickCount = 0; else - m_clickCount = event.ButtonDClick() ? 2 : 1; + m_clickCount = clickCount; m_timestamp = WTF::currentTime(); } |