on xenial help sign in
simplify, the item mapped from can be null
commit0857d674a6bf5c2924b9c6e5fd12442cd1686504 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateThu 3 Dec 2015, 16:48 (11 years ago) parent41b6e5c
1 file changed+1−1
qml/Shell.qml+1−1
qml/Shell.qml+1−1
@@ -181,7 +181,7 @@ Item {
181181 onTouchBegun: { cursor.opacity = 0; }
182182 onTouchEnded: {
183183 // move the (hidden) cursor to the last known touch position
184− var mappedCoords = shell.parent ? mapFromItem(shell.parent, pos.x, pos.y) : Qt.point(pos.x, pos.y)
184+ var mappedCoords = mapFromItem(shell.parent, pos.x, pos.y);
185185 cursor.x = mappedCoords.x;
186186 cursor.y = mappedCoords.y;
187187 }