File tree 1 file changed +8
-2
lines changed 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 58
58
} ,
59
59
initEvent : function ( ) {
60
60
if ( $ . isFunction ( this . options . down . callback ) ) {
61
- this . element . addEventListener ( 'touchstart' , this ) ;
61
+ this . element . addEventListener ( $ . EVENT_START , this ) ;
62
62
this . element . addEventListener ( 'drag' , this ) ;
63
63
this . element . addEventListener ( 'dragend' , this ) ;
64
64
}
73
73
} ,
74
74
handleEvent : function ( e ) {
75
75
switch ( e . type ) {
76
- case 'touchstart' :
76
+ case $ . EVENT_START :
77
77
this . isInScroll && this . _canPullDown ( ) && e . target && ! this . _preventDefaultException ( e . target , this . options . preventDefaultException ) && e . preventDefault ( ) ;
78
78
break ;
79
79
case 'drag' :
347
347
} else {
348
348
this . removing = true ;
349
349
}
350
+ if ( this . isInScroll ) {
351
+ $ ( this . element . parentNode ) . scroll ( ) . refresh ( ) ;
352
+ }
350
353
} ,
351
354
endPullUpToRefresh : function ( finished ) {
352
355
if ( finished ) {
358
361
this . pullUpTipsIcon . innerHTML = this . options . up . contentdown ;
359
362
}
360
363
this . loading = false ;
364
+ if ( this . isInScroll ) {
365
+ $ ( this . element . parentNode ) . scroll ( ) . refresh ( ) ;
366
+ }
361
367
} ,
362
368
setStopped : function ( stopped ) {
363
369
if ( stopped != this . stopped ) {
You can’t perform that action at this time.
0 commit comments