@@ -1140,7 +1140,7 @@ fotoramaVersion = '4.6.4';
1140
1140
1141
1141
function addEvent ( el , e , fn , bool ) {
1142
1142
if ( ! e ) return ;
1143
- el . addEventListener ? el . addEventListener ( e , fn , { passive : true } ) : el . attachEvent ( 'on' + e , fn ) ;
1143
+ el . addEventListener ? el . addEventListener ( e , fn , ! ! bool ) : el . attachEvent ( 'on' + e , fn ) ;
1144
1144
}
1145
1145
1146
1146
/**
@@ -1219,6 +1219,7 @@ fotoramaVersion = '4.6.4';
1219
1219
}
1220
1220
1221
1221
function stopEvent ( e , stopPropagation ) {
1222
+ e . preventDefault ? e . preventDefault ( ) : ( e . returnValue = false ) ;
1222
1223
stopPropagation && e . stopPropagation && e . stopPropagation ( ) ;
1223
1224
}
1224
1225
@@ -1518,7 +1519,7 @@ fotoramaVersion = '4.6.4';
1518
1519
addEvent ( el , 'touchmove' , onMove ) ;
1519
1520
addEvent ( el , 'touchend' , onEnd ) ;
1520
1521
1521
- addEvent ( document , 'touchstart' , onOtherStart ) ;
1522
+ addEvent ( document , 'touchstart' , onOtherStart , true ) ;
1522
1523
addEvent ( document , 'touchend' , onOtherEnd ) ;
1523
1524
addEvent ( document , 'touchcancel' , onOtherEnd ) ;
1524
1525
0 commit comments