[Webkit-unassigned] [Bug 30271] [QT] DRT doesn't support double click simulation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 10 03:27:24 PDT 2009


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


Jakub Wieczorek <faw217 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |faw217 at gmail.com




--- Comment #2 from Jakub Wieczorek <faw217 at gmail.com>  2009-10-10 03:27:23 PDT ---
It seems that:

eventSender.mouseDown(0); // left button
eventSender.mouseUp(0);
eventSender.mouseDown(2); // right button
eventSender.mouseUp(2);

would simulate a double click event too with this patch.

Looking at the logic from Mac's EventSender I assume this should not happen:

- (void)updateClickCountForButton:(int)buttonNumber
{
    if (([self currentEventTime] - lastClick >= 1) ||
        !NSEqualPoints(lastMousePosition, lastClickPosition) ||
        lastClickButton != buttonNumber) {
        clickCount = 1;
        lastClickButton = buttonNumber;
    } else
        clickCount++;
}

Resetting m_timeStarted to false in LTC::reset() may make sense too. In theory
running two (or more) subsequent tests that do not move the mouse position and
simulate two single clicks would create a double click event in the second
test.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list