Skip to content

Commit

Permalink
Merge branch 'fix-reset-function'
Browse files Browse the repository at this point in the history
  • Loading branch information
farzanuddin committed Dec 18, 2019
2 parents e31550b + 9fd502a commit 2a4e554
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class PhotoViewManager {
this._manager.off('zoom');
}

reset({ animate = false } = {}) {
reset(animate) {
if(animate) {
this._setTransition(true);
this._transform(0, 0, 1);
Expand Down Expand Up @@ -229,12 +229,11 @@ class PhotoView {
new PhotoViewManager(options).init(item)
);
});

}

reset() {
reset({ animate = false } = {}) {
this.instances.forEach(photoViewInstance => {
photoViewInstance.reset();
photoViewInstance.reset(animate);
});
}

Expand Down

0 comments on commit 2a4e554

Please sign in to comment.