Skip to content

Commit

Permalink
fix: remove event prevent default
Browse files Browse the repository at this point in the history
closes: #24
  • Loading branch information
abdelrahman3d committed Jan 28, 2019
1 parent 07949b3 commit c253562
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Hooper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@ export default {
this.allSlides.forEach((slide, index) => {
const lower = this.$settings.centerMode ? Math.ceil(current - siblings / 2) : current
const upper = this.$settings.centerMode ? Math.floor(current + siblings / 2) : Math.floor(current + siblings - 1)
console.log(lower, upper);
if (index >= lower && index <= upper) {
slide.classList.remove('is-prev', 'is-next');
slide.classList.add('is-active');
Expand Down Expand Up @@ -395,7 +394,6 @@ export default {
if (!this.isTouch && event.button !== 0) {
return;
}
event.preventDefault();
this.startPosition = { x: 0, y: 0 };
this.endPosition = { x: 0, y: 0 };
Expand Down

0 comments on commit c253562

Please sign in to comment.