Changeset 32798 in webkit
- Timestamp:
- May 1, 2008 10:16:42 PM (16 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r32795 r32798 1 2008-05-01 Kevin Ollivier <kevino@theolliviers.com> 2 3 Reviewed by Eric Seidel. 4 5 Make sure we properly set the button for all mouse events, 6 not just mouse down, set the click count to 0 7 for non-click events, and finally set the timestamp. 8 9 https://bugs.webkit.org/show_bug.cgi?id=18464 10 11 * platform/wx/MouseEventWx.cpp: 12 (WebCore::PlatformMouseEvent::PlatformMouseEvent): 13 1 14 2008-05-01 Sam Weinig <sam@webkit.org> 2 15 -
trunk/WebCore/platform/wx/MouseEventWx.cpp
r29663 r32798 25 25 26 26 #include "config.h" 27 #include "Assertions.h" 27 28 #include "PlatformMouseEvent.h" 29 #include "SystemTime.h" 28 30 29 31 #include <wx/defs.h> … … 35 37 : m_position(event.GetPosition()) 36 38 , m_globalPosition(globalPoint) 37 , m_clickCount(event.ButtonDClick() ? 2 : 1)38 39 , m_shiftKey(event.ShiftDown()) 39 40 , m_ctrlKey(event.CmdDown()) … … 54 55 m_eventType = MouseEventMoved; 55 56 56 if (event. LeftIsDown())57 if (event.Button(wxMOUSE_BTN_LEFT)) 57 58 m_button = LeftButton; 58 else if (event. RightIsDown())59 else if (event.Button(wxMOUSE_BTN_RIGHT)) 59 60 m_button = RightButton; 60 else if (event. MiddleIsDown())61 else if (event.Button(wxMOUSE_BTN_MIDDLE)) 61 62 m_button = MiddleButton; 63 else if (!m_eventType == MouseEventMoved) 64 ASSERT_NOT_REACHED(); 65 66 67 if (m_eventType == MouseEventMoved) 68 m_clickCount = 0; 69 else 70 m_clickCount = event.ButtonDClick() ? 2 : 1; 71 72 m_timestamp = WebCore::currentTime(); 62 73 } 63 74
Note: See TracChangeset
for help on using the changeset viewer.