Skip to content

Commit

Permalink
Fix issue with wrong effects position after resize
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Nov 21, 2015
1 parent ec2dc43 commit 65cbb21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1724,11 +1724,14 @@ s.slideTo = function (slideIndex, speed, runCallbacks, internal) {

if (translate === s.translate) {
s.updateClasses();
if (s.params.effect !== 'slide') {
s.setWrapperTranslate(translate);
}
return false;
}
s.updateClasses();
s.onTransitionStart(runCallbacks);
var translateX = isH() ? translate : 0, translateY = isH() ? 0 : translate;

if (speed === 0) {
s.setWrapperTransition(0);
s.setWrapperTranslate(translate);
Expand Down

0 comments on commit 65cbb21

Please sign in to comment.