[vlc-commits] [Git][videolan/vlc][master] qml: fix unnecessary layout calls with expand animation

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Sep 6 10:30:14 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
f21bda02 by Prince Gupta at 2024-09-06T10:00:04+00:00
qml: fix unnecessary layout calls with expand animation

- - - - -


1 changed file:

- modules/gui/qt/widgets/qml/ExpandGridView.qml


Changes:

=====================================
modules/gui/qt/widgets/qml/ExpandGridView.qml
=====================================
@@ -359,6 +359,11 @@ FocusScope {
         if (_currentRange[0] === _currentRange[1])
             return
 
+        // anchoring and expand item animation conflicts
+        // causing view range oscilate on two different values
+        if (animateExpandItem.running || animateRetractItem.running)
+            return
+
         // fix anchor for some duration, so that index remains
         // same during whole resize operation
         const dirty = (Date.now() - _anchoredIdxUpdate) > VLCStyle.duration_veryLong



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f21bda0200d34d72e1a7dd702737bb52ed0d44ca

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f21bda0200d34d72e1a7dd702737bb52ed0d44ca
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list