on xenial help sign in
Never propagate composed events
0659a9eDalton Durst
qml/Launcher/Drawer.qml+2−9
@@ -190,9 +190,10 @@ FocusScope {
190 }
190 }
191
191
192 MouseArea {
192 MouseArea {
193+ id: horizontalDragDetector
193 parent: listLoader.item ? listLoader.item : null
194 parent: listLoader.item ? listLoader.item : null
194 anchors.fill: parent
195 anchors.fill: parent
195− propagateComposedEvents: true
196+ propagateComposedEvents: false
196 property int oldX: 0
197 property int oldX: 0
197 onPressed: {
198 onPressed: {
198 oldX = mouseX;
199 oldX = mouseX;
@@ -203,7 +204,6 @@ FocusScope {
203 if (!root.draggingHorizontally) {
204 if (!root.draggingHorizontally) {
204 return;
205 return;
205 }
206 }
206− propagateComposedEvents = false;
207 parent.interactive = false;
207 parent.interactive = false;
208 root.dragDistance += diff;
208 root.dragDistance += diff;
209 oldX = mouseX
209 oldX = mouseX
@@ -215,13 +215,6 @@ FocusScope {
215 root.draggingHorizontally = false;
215 root.draggingHorizontally = false;
216 parent.interactive = true;
216 parent.interactive = true;
217 }
217 }
218− reactivateTimer.start();
219− }
220−
221− Timer {
222− id: reactivateTimer
223− interval: 0
224− onTriggered: parent.propagateComposedEvents = true;
225 }
218 }
226 }
219 }
227
220