Changeset 35066 in webkit


Ignore:
Timestamp:
Jul 8, 2008 3:32:32 PM (16 years ago)
Author:
kevino@webkit.org
Message:

Reviewed by Kevin Ollivier.

Fix to previous patch for handling mouse up events.

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

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r35065 r35066  
     12008-07-08  Kevin Watters  <kevinwatters@gmail.com>
     2
     3        Reviewed by Kevin Ollivier.
     4
     5        Fix to previous patch for handling mouse up events.
     6       
     7        https://bugs.webkit.org/show_bug.cgi?id=18464
     8
     9        * platform/wx/MouseEventWx.cpp:
     10        (WebCore::PlatformMouseEvent::PlatformMouseEvent):
     11
    1122008-07-08  Dan Bernstein  <mitz@apple.com>
    213
  • trunk/WebCore/platform/wx/MouseEventWx.cpp

    r32798 r35066  
    2121 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    2222 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    23  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
     23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2424 */
    2525
     
    5555        m_eventType = MouseEventMoved;
    5656
    57     if (event.Button(wxMOUSE_BTN_LEFT))
     57    if (event.LeftIsDown() || event.Button(wxMOUSE_BTN_LEFT))
    5858        m_button = LeftButton;
    59     else if (event.Button(wxMOUSE_BTN_RIGHT))
     59    else if (event.RightIsDown() || event.Button(wxMOUSE_BTN_RIGHT))
    6060        m_button = RightButton;
    61     else if (event.Button(wxMOUSE_BTN_MIDDLE))
     61    else if (event.MiddleIsDown() || event.Button(wxMOUSE_BTN_MIDDLE))
    6262        m_button = MiddleButton;
    6363    else if (!m_eventType == MouseEventMoved)
Note: See TracChangeset for help on using the changeset viewer.