Skip to content

New request for an overlay to be displayed is not ignored while close animation is running#3

Merged
larister merged 1 commit intoBrandwatchLtd:masterfrom
ingdir:reinit-on-animation
Oct 29, 2015
Merged

New request for an overlay to be displayed is not ignored while close animation is running#3
larister merged 1 commit intoBrandwatchLtd:masterfrom
ingdir:reinit-on-animation

Conversation

@ingdir
Copy link

@ingdir ingdir commented Oct 28, 2015

Previously, if a new call was made to the plugin and a previous overlay was still being closed with an animation, the new call was ignored. That means if we remove an overlay and immediately try to create a new one, we end up not having an overlay.

Now, if a new call comes while an old closing animation still runs, the animation is completed immediately, final CSS properties set, callbacks called, and new overlay is immediately created.

@johnathan-sewell
Copy link

@ingdir did you manage to get any QA done on this?

@ingdir
Copy link
Author

ingdir commented Oct 28, 2015

@JonathanSewell This was tested as a part of the New Channel Workflow ticket. Do you think there are any specific scenarios we should be aware of because of this change?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nabd but in future just change this to be multivar declarations.

i.e.

var mask;
var exposed;

etc

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I think isClosing is a better name

@larister
Copy link

Couple of small style comments but generally lgtm. Merging

larister added a commit that referenced this pull request Oct 29, 2015
New request for an overlay to be displayed is not ignored while close animation is running
@larister larister merged commit f693ac6 into BrandwatchLtd:master Oct 29, 2015
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

Successfully merging this pull request may close these issues.

3 participants