Skip to content

Commit

Permalink
Aligning repo with WC core. RTL and fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffikus committed Jan 30, 2018
1 parent 41dba02 commit 95f5e9f
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 21 deletions.
4 changes: 2 additions & 2 deletions README.mdown
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ To keep up to date with how FlexSlider's development roadmap looks, please see o

** Version 2.7.0 **

** Details go here. **
** Fixes resize method call for orientationchange. Adds RTL feature - param "rtl" added. **

** Version 2.6.3 **

Expand Down Expand Up @@ -202,4 +202,4 @@ Description to be added.
Boolean. Whether or not you'd like FlexSlider to initialize as usual if only one slide is present.

### rtl: *{new}*
Boolean. Supports RTL functionality in the slider.
Boolean. False by default. Supports RTL functionality in the slider.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "flexslider",
"version": "2.7.0",
"homepage": "https://github.com/woothemes/FlexSlider",
"homepage": "https://github.com/woocommerce/FlexSlider",
"authors": [
"WooThemes <jeff@woothemes.com>"
"Automattic <jeff@woothemes.com>"
],
"description": "An awesome, fully responsive jQuery slider toolkit.",
"main": [
Expand Down
5 changes: 3 additions & 2 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ FLEXSLIDER CHANGELOG
2016.09.06 - Version 2.6.3
* Rollback fade fixes, due to harsh fade reports.

2017.06.30 - Version 2.7.0
* Details go here.
2018.01.30 - Version 2.7.0
* Fixes resize method call for orientationchange.
* Adds RTL feature - param "rtl" added.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "woothemes/FlexSlider",
"name": "woocommerce/FlexSlider",
"description": "An awesome, fully responsive jQuery slider toolkit.",
"keywords": ["flexslider","slider","jquery","woothemes","automattic"],
"homepage": "https://github.com/woothemes/FlexSlider"
"keywords": ["flexslider","slider","jquery","woocommerce","automattic"],
"homepage": "https://github.com/woocommerce/FlexSlider"
}
6 changes: 5 additions & 1 deletion jquery.flexslider-min.js

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions jquery.flexslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var namespace = slider.vars.namespace,
msGesture = window.navigator && window.navigator.msPointerEnabled && window.MSGesture,
touch = (( "ontouchstart" in window ) || msGesture || window.DocumentTouch && document instanceof DocumentTouch) && slider.vars.touch,
// depricating this idea, as devices are being released with both of these events
// deprecating this idea, as devices are being released with both of these events
eventType = "click touchend MSPointerUp keyup",
watchedEvent = "",
watchedEventClearTimer,
Expand Down Expand Up @@ -446,7 +446,6 @@
(reverse) ? (slider.last - slider.currentSlide + slider.cloneOffset) * cwidth : (slider.currentSlide + slider.cloneOffset) * cwidth;
startX = (vertical) ? localY : localX;
startY = (vertical) ? localX : localY;

el.addEventListener('touchmove', onTouchMove, false);
el.addEventListener('touchend', onTouchEnd, false);
}
Expand All @@ -460,7 +459,6 @@

dx = (vertical) ? startX - localY : (slider.vars.rtl?-1:1)*(startX - localX);
scrolling = (vertical) ? (Math.abs(dx) < Math.abs(localX - startY)) : (Math.abs(dx) < Math.abs(localY - startY));

var fxms = 500;

if ( ! scrolling || Number( new Date() ) - startT > fxms ) {
Expand Down Expand Up @@ -796,6 +794,7 @@
if (!touch) {
slider.slides.eq(slider.currentSlide).css({"zIndex": 1}).animate({"opacity": 0}, slider.vars.animationSpeed, slider.vars.easing);
slider.slides.eq(target).css({"zIndex": 2}).animate({"opacity": 1}, slider.vars.animationSpeed, slider.vars.easing, slider.wrapup);

} else {
slider.slides.eq(slider.currentSlide).css({ "opacity": 0, "zIndex": 1 });
slider.slides.eq(target).css({ "opacity": 1, "zIndex": 2 });
Expand Down Expand Up @@ -1173,8 +1172,7 @@
minItems: 1, //{NEW} Integer: Minimum number of carousel items that should be visible. Items will resize fluidly when below this.
maxItems: 0, //{NEW} Integer: Maxmimum number of carousel items that should be visible. Items will resize fluidly when above this limit.
move: 0, //{NEW} Integer: Number of carousel items that should move on animation. If 0, slider will move all visible items.
allowOneSlide: true, //{NEW} Boolean: Whether or not to allow a slider comprised of a single slide
rtl: false, //{NEW} Boolean: Whether or not to enable RTL mode
allowOneSlide: true, //{NEW} Boolean: Whether or not to allow a slider comprised of a single slide

// Callback API
start: function(){}, //Callback: function(slider) - Fires when the slider loads the first slide
Expand All @@ -1183,8 +1181,8 @@
end: function(){}, //Callback: function(slider) - Fires when the slider reaches the last slide (asynchronous)
added: function(){}, //{NEW} Callback: function(slider) - Fires after a slide is added
removed: function(){}, //{NEW} Callback: function(slider) - Fires after a slide is removed
init: function() {} //{NEW} Callback: function(slider) - Fires after the slider is initially setup

init: function() {}, //{NEW} Callback: function(slider) - Fires after the slider is initially setup
rtl: false //{NEW} Boolean: Whether or not to enable RTL mode
};

//FlexSlider: Plugin Function
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
"flexslider",
"jquery",
"slider",
"woothemes",
"woocommerce",
"automattic"
],
"author": "WooThemes <jeff@woothemes.com>",
"author": "Automattic <jeff@woothemes.com>",
"license": "GPL-2.0",
"bugs": {
"url": "https://github.com/woothemes/FlexSlider/issues"
"url": "https://github.com/woocommerce/FlexSlider/issues"
},
"homepage": "https://github.com/woothemes/FlexSlider#readme",
"homepage": "https://github.com/woocommerce/FlexSlider#readme",
"dependencies": {
"jquery": ">=1.11.3"
}
Expand Down

0 comments on commit 95f5e9f

Please sign in to comment.