File tree 2 files changed +15
-5
lines changed
2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-swiper" ,
3
- "keywords" : [" react-component" , " react-native" , " ios" ],
4
- "version" : " 1.5.9" ,
3
+ "keywords" : [
4
+ " react-component" ,
5
+ " react-native" ,
6
+ " ios"
7
+ ],
8
+ "version" : " 1.5.10" ,
5
9
"description" : " Swiper component for React Native." ,
6
10
"main" : " index.js" ,
7
11
"scripts" : {
12
16
"test" : " npm run lint"
13
17
},
14
18
"pre-commit" : {
15
- "run" : [" precommit" ],
19
+ "run" : [
20
+ " precommit"
21
+ ],
16
22
"silent" : true
17
23
},
18
24
"standard" : {
25
31
" setImmediate" ,
26
32
" fetch"
27
33
],
28
- "ignore" : [" dist/" , " mock/" , " node_modules/" ]
34
+ "ignore" : [
35
+ " dist/" ,
36
+ " mock/" ,
37
+ " node_modules/"
38
+ ]
29
39
},
30
40
"ava" : {
31
41
"babel" : " inherit" ,
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ export default class extends Component {
254
254
255
255
// only update the offset in state if needed, updating offset while swiping
256
256
// causes some bad jumping / stuttering
257
- if ( width !== this . state . width || height !== this . state . height ) {
257
+ if ( ! this . state . offset || width !== this . state . width || height !== this . state . height ) {
258
258
state . offset = offset
259
259
}
260
260
this . setState ( state )
You can’t perform that action at this time.
0 commit comments