File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " mobilebone" ,
3
- "version" : " 2.3.4 " ,
3
+ "version" : " 2.4.0 " ,
4
4
"description" : " Bone main for mobile web APP with a sigle page mode." ,
5
5
"main" : " src/mobilebone.js" ,
6
6
"directories" : {
Original file line number Diff line number Diff line change 38
38
*
39
39
* @type string
40
40
**/
41
- Mobilebone . VERSION = '2.3.4 ' ;
41
+ Mobilebone . VERSION = '2.4.0 ' ;
42
42
43
43
/**
44
44
* Whether catch attribute of href from element with tag 'a'
868
868
// In ios7+, swipe the edge of page will navigate Safari
869
869
// that will trigger 'popstate' events and the page will transition twice
870
870
var isSafari7 = ! ! navigator . userAgent . match ( / s a f a r i / i) && ! navigator . userAgent . match ( / c h r o m e / i) && typeof document . hidden !== "undefined" && ! window . chrome ;
871
- if ( 'ontouchstart' in window == true ) {
871
+ if ( 'ontouchstart' in window == true && isSafari7 ) {
872
872
document . addEventListener ( "touchmove" , function ( ) {
873
873
history . popstateswipe = true ;
874
874
} ) ;
You can’t perform that action at this time.
0 commit comments