Skip to content

Commit 51b393d

Browse files
author
Rafael J. Staib
committed
Add a fix for the slideLeft effect
1 parent 311b35f commit 51b393d

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

build/jquery.steps.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery Steps v1.0.0pre - 08/13/2013
2+
* jQuery Steps v1.0.0pre - 08/14/2013
33
* Copyright (c) 2013 Rafael Staib (http://www.jquery-steps.com)
44
* Licensed under MIT http://www.opensource.org/licenses/MIT
55
*/
@@ -793,13 +793,12 @@ function startTransitionEffect(wizard, options, state, index, oldIndex)
793793
case transitionEffect.slideLeft:
794794
var outerWidth = currentStep.outerWidth(true),
795795
posFadeOut = (index > oldIndex) ? -(outerWidth) : outerWidth,
796-
posFadeIn = (index > oldIndex) ? outerWidth : -(outerWidth),
797-
posLeft = currentStep.parent().position().left;
796+
posFadeIn = (index > oldIndex) ? outerWidth : -(outerWidth);
798797

799798
currentStep.animate({ left: posFadeOut }, effectSpeed,
800799
function () { $(this)._hideAria(); }).promise();
801800
newStep.css("left", posFadeIn + "px")._showAria()
802-
.animate({ left: posLeft }, effectSpeed).promise();
801+
.animate({ left: 0 }, effectSpeed).promise();
803802
break;
804803

805804
default:

0 commit comments

Comments
 (0)