Double clicks

Getting into LiveCode for iOS? Ask your questions here.

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
maxs
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 402
Joined: Sat Jun 24, 2006 12:02 am
Contact:

Double clicks

Post by maxs » Fri Jan 06, 2017 2:04 am

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

teacherguy
Posts: 373
Joined: Thu Dec 08, 2011 2:43 am

Re: Double clicks

Post by teacherguy » Sun Jan 08, 2017 10:21 pm

I don't believe there is.

But you could measure the milliseconds between taps and if it is less than a threshold you set....

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2365
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Double clicks

Post by jmburnod » Mon Jan 09, 2017 12:16 am

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

Klaus
Posts: 11113
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Double clicks

Post by Klaus » Mon Jan 09, 2017 12:31 am

jmburnod wrote:I used mousedoubledown that sometimes works better than mousedoubledown.
Aha!
Go to bed, Jean-Marc, it is late already... :D

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2365
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Double clicks

Post by jmburnod » Mon Jan 09, 2017 11:10 am

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. :D :D

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

Post Reply

Return to “iOS Deployment”