Commit f62a3e6b authored by kevino@webkit.org's avatar kevino@webkit.org

Reviewed by Kevin Ollivier.

Fix to previous patch for handling mouse up events.        

https://bugs.webkit.org/show_bug.cgi?id=18464


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@35066 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 8e3cd38f
2008-07-08 Kevin Watters <kevinwatters@gmail.com>
Reviewed by Kevin Ollivier.
Fix to previous patch for handling mouse up events.
https://bugs.webkit.org/show_bug.cgi?id=18464
* platform/wx/MouseEventWx.cpp:
(WebCore::PlatformMouseEvent::PlatformMouseEvent):
2008-07-08 Dan Bernstein <mitz@apple.com>
Reviewed by Brady Eidson.
......@@ -20,7 +20,7 @@
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
......@@ -54,11 +54,11 @@ PlatformMouseEvent::PlatformMouseEvent(const wxMouseEvent& event, const wxPoint&
else if (type == wxEVT_MOTION)
m_eventType = MouseEventMoved;
if (event.Button(wxMOUSE_BTN_LEFT))
if (event.LeftIsDown() || event.Button(wxMOUSE_BTN_LEFT))
m_button = LeftButton;
else if (event.Button(wxMOUSE_BTN_RIGHT))
else if (event.RightIsDown() || event.Button(wxMOUSE_BTN_RIGHT))
m_button = RightButton;
else if (event.Button(wxMOUSE_BTN_MIDDLE))
else if (event.MiddleIsDown() || event.Button(wxMOUSE_BTN_MIDDLE))
m_button = MiddleButton;
else if (!m_eventType == MouseEventMoved)
ASSERT_NOT_REACHED();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment