Page 1 of 1
Double clicks
Posted: Fri Jan 06, 2017 2:04 am
by maxs
In livecode docs, it says that MouseDoubleUP works with IOS. For me it works only on Mac.
The docs also say:
If a tool other than the Browse tool is being used, no mouseDoubleUp message is sent. If an unlocked field is clicked with mouse button 1 or 2, no mouseDoubleUp message is sent.
Is there a way to do a double tap on IOS?
Max
Re: Double clicks
Posted: Sun Jan 08, 2017 10:21 pm
by teacherguy
I don't believe there is.
But you could measure the milliseconds between taps and if it is less than a threshold you set....
Re: Double clicks
Posted: Mon Jan 09, 2017 12:16 am
by jmburnod
Hi Max,
I used mousedoubledown that sometimes works better than mousedoubledown.
A time counter between mousedown-mouseup is an other way.
Best regards
Jean-Marc
Re: Double clicks
Posted: Mon Jan 09, 2017 12:31 am
by Klaus
jmburnod wrote:I used mousedoubledown that sometimes works better than mousedoubledown.
Aha!
Go to bed, Jean-Marc, it is late already...

Re: Double clicks
Posted: Mon Jan 09, 2017 11:10 am
by jmburnod
Go to bed, Jean-Marc, it is late already...
Trust to Klaus, He's always right. Fortunately I've found my bed and I can now confirm that
mousedoubleUp sometimes works better than mousedoubleUp.
Here is a "timer way" exemple
Code: Select all
local sStartTime
on mousedown
put the milliseconds into sStartTime
end mousedown
on mouseUp
if the milliseconds > (sStartTime + 3000) then
beep --or what you want1
else
-- what you want2
end if
end mouseUp
Best regards