Skip to content

Commit c6f9805

Browse files
author
chenxuan
committed
🐛 Fixing a bug.
解決了一个touchMove过程的一个小失误
1 parent 698f619 commit c6f9805

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

dist/vue-seamless-scroll.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ exports.default = {
430430
if (this.xPos > 0) this.xPos = 0;
431431
} else if (direction === 3) {
432432
var w = this.$refs.slotList.offsetWidth * -1;
433-
if (this.xPos < w) this.yPos = w;
433+
if (this.xPos < w) this.xPos = w;
434434
}
435435
if (timer) clearTimeout(timer);
436436
timer = setTimeout(function () {

dist/vue-seamless-scroll.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/examples.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-seamless-scroll",
3-
"version": "1.0.15",
3+
"version": "1.0.16",
44
"description": "A simple, Seamless scrolling for Vue.js",
55
"main": "dist/vue-seamless-scroll.min.js",
66
"scripts": {

src/components/myClass.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
if (this.xPos > 0) this.xPos = 0
122122
} else if (direction === 3) {
123123
let w = this.$refs.slotList.offsetWidth * -1
124-
if (this.xPos < w) this.yPos = w
124+
if (this.xPos < w) this.xPos = w
125125
}
126126
if (timer) clearTimeout(timer)
127127
timer = setTimeout(() => {

0 commit comments

Comments
 (0)