-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
snap.image not displayed #644
Comments
I wouldn't have thought so, but there could be something else going on. Can you produce a jsfiddle or something highlighting the problem ? |
In the script
|
Can't see anything obvious wrong, but I'd have to see a running example I think on a fiddle or something to be sure. |
Its also not clear what resolve is etc |
Thanks for your replay. I don't know whats a fiddle is. |
I am completely new with js, but this function sleep, exactly like that is extensively used (i.e. https://stackoverflow.com/questions/951021/what-is-the-javascript-version-of-sleep) |
I mean just an example somewhere to see what happens running. I didn't mean the sleep bit as such. There is a function called resolve isn't there, that is called in 300ms. Why is that there ? :) What does the resolve function do. What happens when you remove the sleep call etc. Just comment out that code and see what happens without it. The problem often is when there's only a bit of code included, it's really difficult to see what else may interfere, so I would include that stuff as well. Even better if you have a live running example somewhere. |
Oh I see actually the resolve bit is just calling itself, so what happens if you remove that still...why is it there ? |
Here is the code: I am using a platform to run behavioral experiments called jatos:
|
Hi!
I am using snap.image to display an image during 300 ms. But sometimes, the image appears and sometimes not. Is it possible that it takes more time to snap to display the image?
Best,
María
The text was updated successfully, but these errors were encountered: