Skip to content

Commit

Permalink
Fix regression regarding transforms introduced in d0377c7
Browse files Browse the repository at this point in the history
  • Loading branch information
jsor committed Feb 17, 2018
1 parent 9d0fb3b commit f08f80d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dist/jquery.jcarousel-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -679,9 +679,9 @@
}

if (transforms3d) {
css.transform = 'translate3d(' + toFloat(properties.left || 0) + ',' + toFloat(properties.top || 0) + ',0)';
css.transform = 'translate3d(' + (properties.left || 0) + ',' + (properties.top || 0) + ',0)';
} else if (transforms) {
css.transform = 'translate(' + toFloat(properties.left || 0) + ',' + toFloat(properties.top || 0) + ')';
css.transform = 'translate(' + (properties.left || 0) + ',' + (properties.top || 0) + ')';
} else {
$.extend(css, properties);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.jcarousel-core.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/jquery.jcarousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -679,9 +679,9 @@
}

if (transforms3d) {
css.transform = 'translate3d(' + toFloat(properties.left || 0) + ',' + toFloat(properties.top || 0) + ',0)';
css.transform = 'translate3d(' + (properties.left || 0) + ',' + (properties.top || 0) + ',0)';
} else if (transforms) {
css.transform = 'translate(' + toFloat(properties.left || 0) + ',' + toFloat(properties.top || 0) + ')';
css.transform = 'translate(' + (properties.left || 0) + ',' + (properties.top || 0) + ')';
} else {
$.extend(css, properties);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.jcarousel.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/core_plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,9 @@
}

if (transforms3d) {
css.transform = 'translate3d(' + toFloat(properties.left || 0) + ',' + toFloat(properties.top || 0) + ',0)';
css.transform = 'translate3d(' + (properties.left || 0) + ',' + (properties.top || 0) + ',0)';
} else if (transforms) {
css.transform = 'translate(' + toFloat(properties.left || 0) + ',' + toFloat(properties.top || 0) + ')';
css.transform = 'translate(' + (properties.left || 0) + ',' + (properties.top || 0) + ')';
} else {
$.extend(css, properties);
}
Expand Down

0 comments on commit f08f80d

Please sign in to comment.