diff --git a/transition.go b/transition.go index 954688e..21066c3 100644 --- a/transition.go +++ b/transition.go @@ -122,9 +122,9 @@ func (t *TransitionManager) Update() ( oldAlpha, oldScale, oldOffsetX = 1, 1, 0 newAlpha, newScale, newOffsetX = 1, 1, 0 - slideDir := float32(-1) + slideDir := float32(1) if t.direction == DirectionBackward { - slideDir = 1 + slideDir = -1 } p := t.accumSec / t.totalSec