alpha
Login
or
Join now
jmrp.io
/
kleidos
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/jmrplens/kleidos. Kleidos — Hardware BLE password manager for ESP32-S3 (M5StickC Plus2, StickS3, M5Stack Gray, T-Deck, Cardputer)
jmrplens.github.io/kleidos/
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
kleidos
/
test
/
ui
/
test_animation
/
at
main
1 file
José M. Requena Plens
fix(char-wheel): stop the ring spinning backward across a lap wrap
2mo ago
e685bb28
test_animation.cpp
fix(char-wheel): stop the ring spinning backward across a lap wrap After the glyph ring passed a full lap (Z -> A), the next single-step tap animated the whole ring backward through the box ("all the letters flash by") instead of stepping one glyph forward. The running ring float grows freely (it is rendered modulo the ring length), so after a wrap its value is e.g. 26 (a 26-glyph ring) while the settled integer index has wrapped to 0. Tween::retarget starts from the tween's CURRENT value, so retargeting to wrappedIndex+1 (= 1) animated 26 -> 1 — a backward sweep of the whole ring. Fix: when re-seeding a fresh slide (the previous one settled), re-base the tween onto the wrapped integer index with Tween::snap before retargeting, so the step is always +1 forward. The snap is to the same on-screen glyph (value mod ringLen), so it is invisible; a continuous hold keeps the tween active and never hits this path. Add a Tween regression test for the re-based forward step.
2 months ago