Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start Sequence #70

Open
jiaoery opened this issue Sep 11, 2017 · 5 comments
Open

Start Sequence #70

jiaoery opened this issue Sep 11, 2017 · 5 comments

Comments

@jiaoery
Copy link

jiaoery commented Sep 11, 2017

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
Copy link
Contributor

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

@jiaoery
Copy link
Author

jiaoery commented Sep 15, 2017

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

@jiaoery
Copy link
Author

jiaoery commented Sep 15, 2017

You can try iterror img

dhavalwooplr added a commit to dhavalwooplr/Spotlight that referenced this issue Oct 25, 2017
@dhavalwooplr
Copy link
Contributor

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

@jiaoery
Copy link
Author

jiaoery commented Apr 20, 2018

it's my honor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants