Skip to content

Commit b3120be

Browse files
committed
4.8.12
1 parent 862b121 commit b3120be

File tree

9 files changed

+20
-20
lines changed

9 files changed

+20
-20
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ import 'vuescroll/dist/vuescroll.css';
5858
Vue.use(vuescroll);
5959
```
6060

61-
### In order to reduce the size of the bundle, you can import modes separately
61+
### In order to reduce the size of the bundle, you can also import modes separately
6262

6363
#### Only import the features of slide mode:
6464

dist/vuescroll-native.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Vuescroll v4.8.11
2+
* Vuescroll v4.8.12
33
* (c) 2018-2018 Yi(Yves) Wang
44
* Released under the MIT License
55
* Github: https://github.com/YvesCoding/vuescroll
@@ -2000,7 +2000,7 @@ function install(Vue$$1) {
20002000

20012001
var Vuescroll = {
20022002
install: install,
2003-
version: '4.8.11',
2003+
version: '4.8.12',
20042004
refreshAll: refreshAll
20052005
};
20062006

dist/vuescroll-native.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.

dist/vuescroll-slide.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Vuescroll v4.8.11
2+
* Vuescroll v4.8.12
33
* (c) 2018-2018 Yi(Yves) Wang
44
* Released under the MIT License
55
* Github: https://github.com/YvesCoding/vuescroll
@@ -3995,7 +3995,7 @@ function install(Vue$$1) {
39953995

39963996
var Vuescroll = {
39973997
install: install,
3998-
version: '4.8.11',
3998+
version: '4.8.12',
39993999
refreshAll: refreshAll
40004000
};
40014001

dist/vuescroll-slide.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.

dist/vuescroll.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Vuescroll v4.8.11
2+
* Vuescroll v4.8.12
33
* (c) 2018-2018 Yi(Yves) Wang
44
* Released under the MIT License
55
* Github: https://github.com/YvesCoding/vuescroll
@@ -4342,7 +4342,7 @@ function install(Vue$$1) {
43424342

43434343
var Vuescroll = {
43444344
install: install,
4345-
version: '4.8.11',
4345+
version: '4.8.12',
43464346
refreshAll: refreshAll
43474347
};
43484348

dist/vuescroll.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.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"report-coverage": "codecov",
4444
"gen-changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
4545
},
46-
"version": "4.8.11",
46+
"version": "4.8.12",
4747
"devDependencies": {
4848
"babel-core": "^6.26.0",
4949
"babel-eslint": "^8.2.5",

src/mode/mix/mixins/core.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ import nativeMix from 'mode/native/mixins/update-native';
1111
function resolveOffset(mode, vm) {
1212
let axis = {};
1313
switch (mode) {
14-
case 'native':
15-
axis = {
16-
x: vm.scrollPanelElm.scrollLeft,
17-
y: vm.scrollPanelElm.scrollTop
18-
};
19-
break;
20-
case 'slide':
21-
axis = { x: vm.scroller.__scrollLeft, y: vm.scroller.__scrollTop };
22-
break;
14+
case 'native':
15+
axis = {
16+
x: vm.scrollPanelElm.scrollLeft,
17+
y: vm.scrollPanelElm.scrollTop
18+
};
19+
break;
20+
case 'slide':
21+
axis = { x: vm.scroller.__scrollLeft, y: vm.scroller.__scrollTop };
22+
break;
2323
}
2424
return axis;
2525
}

0 commit comments

Comments
 (0)