Skip to content

Commit 05af6cc

Browse files
committed
#67: fixes jerky animation
1 parent de4341c commit 05af6cc

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.8.6 (2026-01-08)
2+
3+
- fixes [#67](https://github.com/splashbyte/animated_toggle_switch/issues/67)
4+
15
## 0.8.5 (2025-04-28)
26

37
- adds `padding` to `AnimatedToggleSwitch` ([#65](https://github.com/splashbyte/animated_toggle_switch/issues/65))

lib/src/widgets/custom_animated_toggle_switch.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ class _CustomAnimatedToggleSwitchState<T>
976976

977977
/// Cancels drag because of loading or inactivity
978978
void _cancelDrag() {
979-
_setAnimationInfo(_animationInfo.none());
979+
_setAnimationInfo(_animationInfo.none(current: _positionValue));
980980
_checkValuePosition();
981981
}
982982
}

0 commit comments

Comments
 (0)