Skip to content

Commit

Permalink
fix(photo browser): fixed issue with not working swipe to close
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Feb 18, 2021
1 parent a12f02a commit 1e3bcbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/components/photo-browser/photo-browser-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,15 +457,15 @@ class PhotoBrowser extends Framework7Class {
});
if (pb.params.swipeToClose && pb.params.type !== 'page') {
extend(swiperParams.on, {
touchStart(e) {
touchStart(swiper, e) {
pb.onTouchStart(e);
pb.emit('local::touchStart', e);
},
touchMoveOpposite(e) {
touchMoveOpposite(swiper, e) {
pb.onTouchMove(e);
pb.emit('local::touchMoveOpposite', e);
},
touchEnd(e) {
touchEnd(swiper, e) {
pb.onTouchEnd(e);
pb.emit('local::touchEnd', e);
},
Expand Down

0 comments on commit 1e3bcbc

Please sign in to comment.