on xenial help sign in
Revert "Never propagate composed events"
commitf00cf3d5eaa504189e942cd823c756d15cd0abc6 authorDalton Durst <UniversalSuperBox@users.noreply.github.com> dateTue 26 Mar 2019, 15:41 (8 years ago) parent804b83a
1 file changed+9−2
qml/Launcher/Drawer.qml+9−2
qml/Launcher/Drawer.qml+9−2
@@ -190,10 +190,9 @@ FocusScope {
190190 }
191191
192192 MouseArea {
193− id: horizontalDragDetector
194193 parent: listLoader.item ? listLoader.item : null
195194 anchors.fill: parent
196− propagateComposedEvents: false
195+ propagateComposedEvents: true
197196 property int oldX: 0
198197 onPressed: {
199198 oldX = mouseX;
@@ -204,6 +203,7 @@ FocusScope {
204203 if (!root.draggingHorizontally) {
205204 return;
206205 }
206+ propagateComposedEvents = false;
207207 parent.interactive = false;
208208 root.dragDistance += diff;
209209 oldX = mouseX
@@ -215,6 +215,13 @@ FocusScope {
215215 root.draggingHorizontally = false;
216216 parent.interactive = true;
217217 }
218+ reactivateTimer.start();
219+ }
220+
221+ Timer {
222+ id: reactivateTimer
223+ interval: 0
224+ onTriggered: parent.propagateComposedEvents = true;
218225 }
219226 }
220227