File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1108
1108
defaults : {
1109
1109
// set 0 for unlimited, but this can conflict with transform
1110
1110
swipe_max_touches : 1 ,
1111
- swipe_velocity : 0.7
1111
+ swipe_velocity : 0.4
1112
1112
} ,
1113
1113
handler : function swipeGesture ( ev , inst ) {
1114
1114
if ( ev . eventType == ionic . Gestures . EVENT_END ) {
1164
1164
} ,
1165
1165
triggered : false ,
1166
1166
handler : function dragGesture ( ev , inst ) {
1167
+
1168
+ if ( ev . srcEvent . type == 'touchstart' || ev . srcEvent . type == 'touchend' ) {
1169
+ this . preventedFirstMove = false ;
1170
+
1171
+ } else if ( ! this . preventedFirstMove && ev . srcEvent . type == 'touchmove' ) {
1172
+ ev . srcEvent . preventDefault ( ) ;
1173
+ this . preventedFirstMove = true ;
1174
+ }
1175
+
1167
1176
// current gesture isnt drag, but dragged is true
1168
1177
// this means an other gesture is busy. now call dragend
1169
1178
if ( ionic . Gestures . detection . current . name != this . name && this . triggered ) {
You can’t perform that action at this time.
0 commit comments