From 3d6165e2ef92c89abdca0db9f7c8ba3b3033286a Mon Sep 17 00:00:00 2001 From: Razvan Stoenescu Date: Sun, 12 Mar 2017 14:27:46 +0200 Subject: [PATCH] refactor: Small enhancements for Slider --- dev/components/components/slider.vue | 17 ++++++++++++++++- src/vue-components/slider/Slider.vue | 4 ---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/dev/components/components/slider.vue b/dev/components/components/slider.vue index 11e3160890e..334f2315246 100644 --- a/dev/components/components/slider.vue +++ b/dev/components/components/slider.vue @@ -34,7 +34,7 @@

- Slider with Centered Content and Infinite Scrolling + Slider with Centered Content and Infinite Scroll

@@ -48,6 +48,21 @@
+

+ Slider with Infinite Scroll and Autoplay +

+ +
+ Slide 1 +
+
+ Slide 2 +
+
+ Slide 3 +
+
+

Slider with Custom Actions as Controls

diff --git a/src/vue-components/slider/Slider.vue b/src/vue-components/slider/Slider.vue index b0de2a07dfd..344df8abb0d 100644 --- a/src/vue-components/slider/Slider.vue +++ b/src/vue-components/slider/Slider.vue @@ -106,9 +106,7 @@ export default { }, methods: { __pan (event) { - console.log('__pan') if (this.infinite && this.animationInProgress) { - console.log('return', this.infinite, this.animationInProgress) return } if (!this.hasOwnProperty('initialPosition')) { @@ -135,13 +133,11 @@ export default { this.positionSlide = (event.direction === 'left' ? this.slide + 1 : this.slide - 1) if (event.isFinal) { - console.log('final') this.goToSlide( event.distance.x < 100 ? this.slide : this.positionSlide, () => { - console.log('deleting initialPosition') delete this.initialPosition } )