Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5643] Button event doesn't respond if we click continuously

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2018-03-06T10:50:01.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
Reportersonufana4u
AssigneeShak Hossain
Created2018-03-06T05:30:49.000+0000
Updated2018-03-07T01:30:19.000+0000

Description

I need to perform some logic when user clicks on button.It responds when we click normally but when we click continuously it doesn't respond.So how to handle this situation in this scenario.I tried to put loader also but that doesn't work.Sharing the code as well as video. I need to sort this on iOS.

Attachments

FileDateSize
Button_event.mov2018-03-06T05:30:38.000+00001512106
index.js2018-03-06T05:30:01.000+0000108
index.tss2018-03-06T05:29:48.000+0000159
index.xml2018-03-06T05:29:31.000+0000106

Comments

  1. Rene Pot 2018-03-06

    Hi [~shossain], this is not really a bug. If you want to get an event every time you touch a button use a different event, the touchstart event. http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Button-event-touchstart Please ask in the community if you need help implementing something. I'm also there to help (Stackoverflow/TiSlack)
  2. Rene Pot 2018-03-06

    Of course meant to mention [~sonufana4u] :)
  3. Joshua Quick 2018-03-07

    Right. This is the correct behavior on iOS. A single tap will fire a "click" event. A quick double tap will fire a "dblclick" event. Tapping more than 2 times in quick succession (I think less than 300 milliseconds between taps) will not fire a "click" or "dblclick" event. But that said, every quick tap will fire a "touchend" event... even if it registers as a single click or double click. So, "touchend" might be what you're after.

JSON Source