This commit is contained in:
David 2020-09-21 14:10:15 +02:00
parent 4845f7987f
commit 194bd9cd6a
1 changed files with 4 additions and 2 deletions

View File

@ -233,9 +233,11 @@ class _MiniplayerState extends State<Miniplayer> with TickerProviderStateMixin {
void handleHeightChange({bool animation = false}) {
///Drag above minHeight
if (_dragHeight >= widget.minHeight) {
heightNotifier.value = _dragHeight;
if (dragDownPercentage.value != 0) dragDownPercentage.value = 0;
if (!animating && _dragHeight > widget.maxHeight) return;
heightNotifier.value = _dragHeight;
}
///Drag below minHeight