button action different on Android

J. Landman Gay jacque at hyperactivesw.com
Thu May 31 01:14:45 EDT 2018


There is a convention on Android where a long press on a button can, and 
often does, show a tooltip or a label. This is handy when you don't know 
what an icon means. Long presses on Android can also behave like right 
clicks on desktop to provide alternate behaviors. It may be that the 
problem isn't LC, but rather Android ceding time for that sort of thing.

Just a guess based on nothing much.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On May 30, 2018 9:34:40 PM Brian Milby via use-livecode 
<use-livecode at lists.runrev.com> wrote:

> Is it possible that a long press is sending a different message (and not 
> the mouseUp)? I do not have Android development set up yet (or a device 
> other than a Fire) so I can’t test to see.
> On May 30, 2018, 8:18 PM -0500, Sannyasin Brahmanathaswami via use-livecode 
> <use-livecode at lists.runrev.com>, wrote:
>> I'm seeing similar behavior on the main navigation buttons at bottom of the 
>> screen. In SivaSiva app Although it behaves differently, I suspect similar 
>> underlying engine issue
>>
>> I have large fingers, Example, the "Home" (a button that takes you back) 
>> icon has plenty of touch space. It is on left bottom..
>>
>> When I touch it carefully, and slowly with my thumb or big forefinger, and 
>> release, it seems not to send mouseup. I was wracking head around this... 
>> but when I tried to touched very lightly, using my "little pinky" .. it was 
>> immediately responsive!
>>
>> I had a round of support questions to business support on the subjects
>>
>> All they could come up with was. "I think it might just be that it is a 
>> smallish area that is quite hard to hit. You could increase the height of 
>> the SVG widgets to be as tall as the bar or perhaps providing some visual 
>> feedback to the user."
>>
>> But that is not it. The finger is touch the button. I was told
>>
>> "To try and see what is happening with the buttons and detect when they are
>> actually being hit you could add some logging to the mouseUp handler."
>>
>> and, "a slow, full finger push" on the button indeed gives no mouseup... 
>> but a light touch will!
>>
>> Are all of your button SVG Widgets? I gave up on this, it was so mysterious.
>>
>> After 1.2 goes out the week, I will test it again
>>
>> BR
>>
>>
>> Nicolas Cueto via use-livecode
>>
>> Wrote:
>>
>> On Android, after a button is tapped, its appearance is inconsistent. It
>> looks either:
>> 1. first depressed (inset?) and then un-depressed
>> 2. first depressed and remains depressed
>>
>> It seems the difference in appearance depends on the time length of the
>> tap, and perhaps too on how narrow/small the buttons are (my fingertip is
>> almost larger than the button height). If a tap is very brief, the button
>> returns to an un-depressed state; if longishly held, the button stays
>> depressed.
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode







More information about the use-livecode mailing list