added SPM
All checks were successful
/ test-on-windows (push) Successful in 9s
/ test-on-alpine (push) Successful in 4s

This commit is contained in:
partisan 2024-12-25 10:58:31 +01:00
parent 17bb547c74
commit 9e5457c2ec
8 changed files with 779 additions and 18 deletions

View file

@ -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