JavaScript combine tap and doubletap ionic events

I'm searched a few examples but I don't found anything that solved my problem. My problem is very simple, I need a one element with two events, one tap and double tap event. I do this but the events bind together and I don't need this.. I need that I tap on element two times (doubletap), the state of element is selected, and if I tap one time the element is deselected and now is not selected. I do this too and the result is the same, events fired together... Anybody know how do this??

Thanks

Answer:1

http://www.gajotres.net/ionic-framework-series-13-touch-gestures/ says in comments section that ionic has disabled onTap related delay, which is used for detecting these tap types separately. No workaround was mentioned, only that it is not possible to distinguih them out of the box.

Snippet text:

Unfortunately, changes done one year ago removed 300ms click delay from Ionic applications. I'm saying its unfortunately because now application can't correctly detect tap/double-tap on the same element. Both of them will trigger.

Answer:2

How do check if ticketId already inserted into array? This is the code: state = { myState: [], status: 0, limit: 5 }; selected(ticketId) { if (this.state.status < this.state.limit) { ...

How do check if ticketId already inserted into array? This is the code: state = { myState: [], status: 0, limit: 5 }; selected(ticketId) { if (this.state.status < this.state.limit) { ...

  1. react native array map
  2. react native array length
  3. react native array of components
  4. react native array in state
  5. react native array filter
  6. react native array push
  7. react native array of refs
  8. react native array of styles
  9. react native array of images
  10. react native array contains
  11. react native array map example
  12. react native array index
  13. react native array add item
  14. react native array of objects
  15. react native array remove item
  16. react native array get item
  17. react native array to string
  18. react native array find
  19. react native array sort
  20. react native array key value

I'm using angular ui , I've created a directive that its controller listen to the websockets server and retrieve the data, actually it works fine but when leaving the page that loads the directive the ...

I'm using angular ui , I've created a directive that its controller listen to the websockets server and retrieve the data, actually it works fine but when leaving the page that loads the directive the ...

I am trying to upload pictures without the page refreshing. I used event.preventDefault() in order to stop the page from refreshing. However, the PHP code that is inside of my jQuery code is not being ...

I am trying to upload pictures without the page refreshing. I used event.preventDefault() in order to stop the page from refreshing. However, the PHP code that is inside of my jQuery code is not being ...

I am using eval() to run a script from a string. Below is the code: eval('console.log("hello")'); I will get hello from the console output. I wonder whether I can save the hello into an variable in ...

I am using eval() to run a script from a string. Below is the code: eval('console.log("hello")'); I will get hello from the console output. I wonder whether I can save the hello into an variable in ...

  1. console output from windows service
  2. console output from wpf application
  3. console output from python
  4. console output from java
  5. console output from gradle
  6. console output in c#
  7. console output in javascript
  8. console output in visual studio
  9. console output in jenkins
  10. console output in php
  11. console output in intellij
  12. console output in android studio
  13. console output in visual studio 2017
  14. console output in powershell
  15. console output in typescript
  16. console output in visual studio code
  17. console output in js
  18. console output in jsp
  19. console output in r
  20. console output in html