29jitender / Spotlight

Spotlight is an Android library used to onboard users by showcasing specific features in the app.
Apache License 2.0
1.27k stars 163 forks source link

Start Sequence #70

Open jiaoery opened 7 years ago

jiaoery commented 7 years ago

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

dhavalwooplr commented 7 years ago

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

jiaoery commented 7 years ago

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

jiaoery commented 7 years ago

You can try iterror img

dhavalwooplr commented 7 years ago

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

jiaoery commented 6 years ago

it's my honor