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
Double clicks
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: Double clicks
I don't believe there is.
But you could measure the milliseconds between taps and if it is less than a threshold you set....
But you could measure the milliseconds between taps and if it is less than a threshold you set....
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Double clicks
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
I used mousedoubledown that sometimes works better than mousedoubledown.
A time counter between mousedown-mouseup is an other way.
Best regards
Jean-Marc
https://alternatic.ch
Re: Double clicks
Aha!jmburnod wrote:I used mousedoubledown that sometimes works better than mousedoubledown.
Go to bed, Jean-Marc, it is late already...
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Double clicks
Trust to Klaus, He's always right. Fortunately I've found my bed and I can now confirm thatGo to bed, Jean-Marc, it is late already...
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
https://alternatic.ch