From e24a778bb72e071dcd253d2246ac6008c6087411 Mon Sep 17 00:00:00 2001 From: jssor Date: Tue, 3 Jul 2018 09:19:40 +0800 Subject: [PATCH] 27.2.0 fix image load with no src specified minor changes --- README.md | 2 +- bower.json | 2 +- component.json | 2 +- demos-jquery/full-window-for-mobile.html | 23 ++++++--- demos-jquery/full-window-for-pc.html | 18 ++++--- demos/full-window-for-mobile.html | 32 +++++++----- demos/full-window-for-pc.html | 49 ++++++++++--------- js/jssor.slider.min.js | 2 +- package.json | 2 +- ...eshow-transition-builder-controller.min.js | 2 +- 10 files changed, 79 insertions(+), 55 deletions(-) diff --git a/README.md b/README.md index 6ae2948..70a2ec9 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Responsive Javascript Image/Text Slider/Slideshow/Gallery/Carousel/HTML5 Ad 2. [https://www.jssor.com/development](https://www.jssor.com/development) 2. [Slides HTML Code](https://www.jssor.com/development/define-slides-html-code.html) 2. [API: Options](https://www.jssor.com/development/api-options.html) -2. [API: Methods, properties & Events](https://www.jssor.com/development/api-methods-properties-events.html) +2. [API: Methods, Properties & Events](https://www.jssor.com/development/api-methods-properties-events.html) 2. [API: UI Definition](https://www.jssor.com/development/api-ui-definition.html) 2. [https://www.jssor.com/help](https://www.jssor.com/help) 2. [https://www.jssor.com/tutorial](https://www.jssor.com/tutorial) diff --git a/bower.json b/bower.json index 241ccf9..5d44ae2 100644 --- a/bower.json +++ b/bower.json @@ -5,7 +5,7 @@ "url": "https://github.com/jssor/slider.git" }, "description": "touch swipe image slider/slideshow/gallery/carousel/banner mobile responsive bootstrap", - "version": "27.1.0", + "version": "27.2.0", "homepage": "https://www.jssor.com", "keywords": [ "javascript", diff --git a/component.json b/component.json index 12222ba..a524788 100644 --- a/component.json +++ b/component.json @@ -2,7 +2,7 @@ "name": "jssor-slider", "repo": "jssor/slider", "description": "touch swipe image slider/slideshow/gallery/carousel/banner mobile responsive bootstrap", - "version": "27.1.0", + "version": "27.2.0", "homepage": "https://www.jssor.com", "keywords": [ "javascript", diff --git a/demos-jquery/full-window-for-mobile.html b/demos-jquery/full-window-for-mobile.html index bf596bf..6ea07bc 100644 --- a/demos-jquery/full-window-for-mobile.html +++ b/demos-jquery/full-window-for-mobile.html @@ -91,29 +91,40 @@ } } - /*ios disable scrolling and bounce effect*/ - //$Jssor$.$AddEvent(document, "touchmove", function(event){event.touches.length < 2 && $Jssor$.$CancelEvent(event);}); + function OnOrientationChange() { + ScaleSlider(); + window.setTimeout(ScaleSlider, 800); + } ScaleSlider(); $(window).bind("load", ScaleSlider); $(window).bind("resize", ScaleSlider); - $(window).bind("orientationchange", ScaleSlider); + $(window).bind("orientationchange", OnOrientationChange); /*#endregion responsive code end*/ });
-