<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 21/08/2021 à 20:22, Juan Vuletich a
écrit :<br>
</div>
<blockquote type="cite" cite="mid:61214481.8060209@jvuletich.org">Can
you provide detailed instructions (setting up, etc) to reproduce
the problem?</blockquote>
<p><font size="+1"><br>
</font></p>
<p><font size="+1">It is very simple.</font></p>
<p><font size="+1">As I want to capture a 1.5s button still down
event with the mouse cursor not moving. I do as following.</font></p>
<p><font size="+1">Whenever there is a mouse move event (button
down, mouseMove:localPosition:), it is dispatched to the current
DrGeo tool. When the context of the tool is dragging an object,
at the end of the tool handler method I reset the mouseStillDown
handle by calling this simple method:</font></p>
<pre><font size="+1">resetMouseStillDownHandle
"We reset the timer"
prevMousePos ifNotNil: [
self startStepping: #processMouseStillDown
in: self mouseStillDownThreshold (1500)
stepTime: self mouseStillDownStepRate (1)]</font></pre>
<p>The expected result is that when the user press down a button,
without moving the cursor, the #mouseStillDown message is sent by
the Morphic system after 1.5s.</p>
<p>There is really nothing special as changing the state of Morphic.
I am only repeatedly stopping and starting the stepping.</p>
<p>Best<br>
</p>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</body>
</html>