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

Resize function is not complete after duration. #36

Closed
leongersen opened this issue Dec 10, 2011 · 2 comments
Closed

Resize function is not complete after duration. #36

leongersen opened this issue Dec 10, 2011 · 2 comments
Labels

Comments

@leongersen
Copy link

The .mapster('resize') function is not done when the duration has finished. This causes problems when unbinding an imagemap after resizing. In my experience it takes up to 700 miliseconds after the duration has passed until the unbind is safe to take place.

@jamietre
Copy link
Owner

I'll check it out. Functions that have callbacks are supposed to cause future functions to be queued until the operation is finished. Sounds like something isn't flagged properly on resize.

@jamietre
Copy link
Owner

jamietre commented Mar 6, 2012

Been a long time, but if you're still listening, this should be fixed in build 1.2.4.049. If it's still relevant please let me know if this does actually solve the problem you were having.

Fiddle showing queuing of events.

http://jsfiddle.net/GwNwp/

There is one event that still doesn't queue properly: bind. That is, if you add a mapster(opts) to the end of the command queue in that fiddle, it breaks. I am going to fix this before releasing also -- so it should be safe to queue any possible combination of commands - but I wanted to see if this resolved the problem you were having.

@jamietre jamietre closed this as completed Mar 9, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants