You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just been using this to zoom around an SVG and found the same problem. I got around it by changing the fragment definition from a single function to an object with two functions: one for show and one for hide. I edited the fragments method to register the hide function too:
SlideBuilder.prototype.fragments = function (callbacks) {
var self = this;
callbacks.forEach(function (obj) {
let frag = self.addFragment();
frag.addEventListener('shown', obj.show);
frag.addEventListener('hidden', obj.hide);
});
return this;
};
Then you have to define both the forward and backward movements, e.g:
From the demo it seems that going backwards doesn't trigger correctly? E.g. fragment two, back and it doesn't show fragment one
The text was updated successfully, but these errors were encountered: