From 7b10703ac36161ee044dbec453e255b0968ebab0 Mon Sep 17 00:00:00 2001 From: hal7df Date: Sat, 7 Jun 2014 12:16:57 -0400 Subject: [PATCH] Fixed some small issues with the game menu. --- android/AndroidManifest.xml | 48 +++++++++++++++++++++++++++++++++++++ qml/2048-qt/NumberGrid.qml | 6 +---- 2 files changed, 49 insertions(+), 5 deletions(-) create mode 100644 android/AndroidManifest.xml diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml new file mode 100644 index 0000000..3063c74 --- /dev/null +++ b/android/AndroidManifest.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/qml/2048-qt/NumberGrid.qml b/qml/2048-qt/NumberGrid.qml index a99f88b..0064e78 100644 --- a/qml/2048-qt/NumberGrid.qml +++ b/qml/2048-qt/NumberGrid.qml @@ -205,11 +205,7 @@ Rectangle { } } - onPressAndHold: { - initX = 0; - initY = 0; - gameMenu.open = !gameMenu.open; - } + onPressAndHold: gameMenu.open = !gameMenu.open; onReleased: { var xdiff, ydiff;