From aea202a94d67c30b2c69c19c3c159666b4920b5f Mon Sep 17 00:00:00 2001 From: partisan Date: Sun, 22 Dec 2024 19:55:20 +0100 Subject: [PATCH] changed slide direction --- transition.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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