summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/declarative/toys/dynamicscene/qml/itemCreation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/declarative/toys/dynamicscene/qml/itemCreation.js b/examples/declarative/toys/dynamicscene/qml/itemCreation.js
index 305cf7a..e74f7b0 100644
--- a/examples/declarative/toys/dynamicscene/qml/itemCreation.js
+++ b/examples/declarative/toys/dynamicscene/qml/itemCreation.js
@@ -5,7 +5,7 @@ var posnInWindow;
function startDrag(mouse)
{
- posnInWindow = paletteItem.mapToItem(null, 0, 0);
+ posnInWindow = paletteItem.mapToItem(window, 0, 0);
startingMouse = { x: mouse.x, y: mouse.y }
loadComponent();
}