[AC-5643] Button event doesn't respond if we click continuously
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2018-03-06T10:50:01.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | sonufana4u |
Assignee | Shak Hossain |
Created | 2018-03-06T05:30:49.000+0000 |
Updated | 2018-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
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)
Of course meant to mention [~sonufana4u] :)
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.