Open jiaoery opened 7 years ago
@jixiang52002 , what was the issue for that you gave a solution?
this issue occurs in the demo's "Start Sequence" function
@jixiang52002 , Thanks. Used this into addSpotlight method's onclicklistener.
it's my honor
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