7

My app is less responsive on mobile devices. It seems that many (all?) browsers put a 300ms delay to decide if the touch was a simple or double touch.

There are solutions for this, like fastclick, but I'm wondering if there is one using Dart code ?

EDIT: There is a method preventGhostClick in: ClickBuster.dart, anyone has ever tried this method? Example?

Eric Lavoie
  • 5,121
  • 3
  • 32
  • 49

1 Answers1

-1

The delay is independent of any browser, JavaScript or library like Dart. It's the way Android detects a double click just by waiting after the first tap if there will be a second one.

In the lower level API of Android you can react on touch-down and touch-up events directly. You could implement this using plain java (e.g. as Android Service), but I've no idea how to call that or listen to its touch-events using Dart.

jboi
  • 11,324
  • 4
  • 36
  • 43
  • While it's not the information I was looking for (I suppose the answer to my question is just -no-), but thanks for the Android info, the bounty is yours. – Eric Lavoie Sep 03 '13 at 14:28
  • Yep. I thought it's better to give you one way that is at least possible instead of leaving you alone with the 'no'. Can you share with how you're solving this issue now? – jboi Sep 03 '13 at 15:13
  • For now it's just few lines using the onTouchStart subscription. I will eventually try [this logic](https://developers.google.com/mobile/articles/fast_buttons) in Dart code. – Eric Lavoie Sep 03 '13 at 18:22