How to implement tochstart and touchend

  • 1
  • Question
  • Updated 9 years ago
  • Answered
I am working in phonegap project

Touch events are taking time to do action

Can any one help me out to implement to touchstart and touchend
Photo of venkteshganesan05

venkteshganesan05

  • 15 Posts
  • 0 Reply Likes

Posted 9 years ago

  • 1
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
Use the string "touchstart", rather than "click", anywhere you're binding events:


document.getElementById('myButton').addEventListener('touchstart', function (e) {
// do something
}, false);
Photo of venkteshganesan05

venkteshganesan05

  • 15 Posts
  • 0 Reply Likes
Andrew we tried this.
Any plugin need to include to do touchstart.
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
No. This is a feature of the underlying browser/webview component - either it is supported on the platform or not.