Skip to content

Commit

Permalink
Merge pull request #12 from remoove/master
Browse files Browse the repository at this point in the history
Fix move up event if move type === 'content'
  • Loading branch information
vaban-ru authored Jul 26, 2021
2 parents ed9bfea + 6a2b4b8 commit e5e000f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vue-bottom-sheet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ export default {
},
move(event, type) {
let delta = -event.deltaY;
if (type === "content" && this.contentScroll === 0) {
type = "pan";
}
if (
(type === 'content' && event.type === 'panup') ||
(type === 'content' && event.type === 'pandown' && this.contentScroll > 0)
Expand Down

0 comments on commit e5e000f

Please sign in to comment.