mobileControlCreate "scroller" -- hold to select an object

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
JereMiami
Posts: 119
Joined: Mon Nov 03, 2014 12:17 am

mobileControlCreate "scroller" -- hold to select an object

Post by JereMiami » Thu Jan 14, 2021 4:42 pm

How can I differentiate a touch that should scroll the native android scroller as opposed to selecting an object within that native android scroller?

mouseUp tends to select objects within the native scroller inadvertently

mouseDoubleUp is tough because of how accurate you have to be on mobile to hit the same location, leaving the user smashing the phone several times before it registers.

I am thinking some sort of script that would recognize the user holding their touch down on an object so that say if the user holds their touch on the object for .5 seconds, only then it will select the object. Anyone have any success at this?

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7215
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: mobileControlCreate "scroller" -- hold to select an object

Post by jacque » Fri Jan 15, 2021 6:35 pm

All Android scrollers work like that. The initial touch hilites the line but the selection disappears as scrolling begins. IOS has properties to control that but Android doesn't use them.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

JereMiami
Posts: 119
Joined: Mon Nov 03, 2014 12:17 am

Re: mobileControlCreate "scroller" -- hold to select an object

Post by JereMiami » Fri Jan 15, 2021 9:15 pm

Thanks- good to know.

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”