[Webkit-unassigned] [Bug 30271] [QT] DRT doesn't support double click simulation
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 19 19:28:36 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=30271
--- Comment #12 from Charles Wei <charles.wei at torchmobile.com.cn> 2009-10-19 19:28:36 PDT ---
(In reply to comment #11)
> (From update of attachment 41105 [details])
> m_timeStarted is not a clear variable name. I don't know what it's supposed to
> do.
>
> Why?
> + usleep(ms * 1000);
>
> That seems like a very bad idea.
m_timeStarted serves like an indicator to test if double click should be
tested.
like for the first mouse click , you don't need to test if it's a double click;
a click after a double click should not be tested as a double click , etc.
about usleep(ms * 1000) for leapForward(int ms), leapFoward is supposed to
simulate the time flow by ms (in millisecond), and mostly for double click
simulation or prevents a double click with a longer leapFoward time. like
below:
EventSender.mouseDown(0);
EventSender.mouseUp(0);
EventSender.leapForward(1000); // without this, a dblclick will be
generated
EventSender.mouseDown(0);
EventSender.mouseUp(0);
If sleep for the ms indicated by leapFoward(ms) is a bad idea, please tell me a
better idea so that I can implement. I don't know what to do with just a
comment like "a bad idea".
--
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