Skip to content
This repository was archived by the owner on Feb 24, 2023. It is now read-only.

Commit b3db90b

Browse files
author
Łukasz Florczak
committed
Merge branch 'master' into develop
* master: 0.3.4 Slide swipe fix 0.3.3 .agile__dots padding and margin reset 0.3.2 Small CSS and dependencies upgrades
2 parents d010619 + e2ae5ce commit b3db90b

File tree

3 files changed

+712
-485
lines changed

3 files changed

+712
-485
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-agile",
3-
"version": "0.3.1",
3+
"version": "0.3.4",
44
"description": "Carousel component for Vue.js",
55
"author": "Łukasz Florczak <[email protected]>",
66
"license": "MIT",
@@ -57,12 +57,12 @@
5757
"http-proxy-middleware": "^0.17.2",
5858
"json-loader": "^0.5.4",
5959
"node-sass": "^3.4.2",
60-
"sass-loader": "^3.2.0",
61-
"semver": "^5.3.0",
6260
"opn": "^4.0.2",
6361
"ora": "^0.3.0",
6462
"pug": "2.0.0-beta6",
6563
"pug-loader": "^2.3.0",
64+
"sass-loader": "^3.2.0",
65+
"semver": "^5.3.0",
6666
"shelljs": "^0.7.4",
6767
"url-loader": "^0.5.7",
6868
"vue-loader": "^9.4.0",

src/Agile.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,10 @@
574574
},
575575
576576
dragDistance () {
577+
if (!this.mouseDown) {
578+
return false
579+
}
580+
577581
if (this.dragDistance > this.swipeDistance) {
578582
if (!this.settings.infinite && this.currentSlide === 0) {
579583
return
@@ -655,17 +659,17 @@
655659
align-items: center;
656660
display: flex;
657661
list-style: none;
662+
margin: 0;
663+
padding: 0;
658664
white-space: nowrap;
659665
}
660666
661667
&__dot {
662668
button {
663-
border: none;
664669
cursor: pointer;
665670
display: block;
666671
font-size: 0;
667672
line-height: 0;
668-
margin: 0;
669673
}
670674
}
671675
}

0 commit comments

Comments
 (0)