on xenial help sign in
don't prevent taps to open the menu
e48d876Lukáš Tinkl
qml/ApplicationMenus/MenuBar.qml+9−7
@@ -235,13 +235,6 @@ Item {
235 updateCurrentItemFromPosition(Qt.point(mouseX, mouseY))
235 updateCurrentItemFromPosition(Qt.point(mouseX, mouseY))
236 }
236 }
237 }
237 }
238− onPositionChanged: {
239− root.positionChanged(mouse);
240− moved = root.windowMoving;
241− if (d.currentItem) {
242− updateCurrentItemFromPosition(Qt.point(mouse.x, mouse.y))
243− }
244− }
245
238
246 onClicked: {
239 onClicked: {
247 if (!moved) {
240 if (!moved) {
@@ -260,6 +253,15 @@ Item {
260 onReleased: root.released(mouse)
253 onReleased: root.released(mouse)
261 onDoubleClicked: root.doubleClicked(mouse)
254 onDoubleClicked: root.doubleClicked(mouse)
262
255
256+ Mouse.ignoreSynthesizedEvents: true
257+ Mouse.onPositionChanged: {
258+ root.positionChanged(mouse);
259+ moved = root.windowMoving;
260+ if (d.currentItem) {
261+ updateCurrentItemFromPosition(Qt.point(mouse.x, mouse.y))
262+ }
263+ }
264+
263 function updateCurrentItemFromPosition(point) {
265 function updateCurrentItemFromPosition(point) {
264 var pos = mapToItem(row, point.x, point.y);
266 var pos = mapToItem(row, point.x, point.y);
265
267