Spotlight icon indicating copy to clipboard operation
Spotlight copied to clipboard

Start Sequence

Open jiaoery opened this issue 7 years ago • 5 comments

When user click this spotlightview very fast.Views will over count times.I try to add a method wich called isFastDoubleClick in class SpotlightSequence.FastDoubleClick method can get whether user click view very fast in 0.8 seconds.The method detail is as follow:

ublic static boolean isFastDoubleClick() { long time = System.currentTimeMillis(); long timeD = time - lastClickTime; if (0 < timeD && timeD < 800) { return false; } lastClickTime = time; return true; }

use it in addSpotlight method's onclicklistener

jiaoery avatar Sep 11 '17 06:09 jiaoery

@jixiang52002 , what was the issue for that you gave a solution?

dhavalwooplr avatar Sep 14 '17 11:09 dhavalwooplr

this issue occurs in the demo's "Start Sequence" function

jiaoery avatar Sep 15 '17 02:09 jiaoery

You can try iterror img

jiaoery avatar Sep 15 '17 02:09 jiaoery

@jixiang52002 , Thanks. Used this into addSpotlight method's onclicklistener.

dhavalwooplr avatar Oct 25 '17 11:10 dhavalwooplr

it's my honor

jiaoery avatar Apr 20 '18 05:04 jiaoery