From 55b1b66505e8beab4b3ebfd09d119f5f14c206f6 Mon Sep 17 00:00:00 2001 From: NickIliev Date: Tue, 23 Jul 2019 16:17:31 +0300 Subject: [PATCH] update gestures for iOS --- app/app.component.html | 2 +- app/app.component.ts | 2 +- app/pages/main/main.component.html | 20 ++++++++++---------- app/shared/animations-helper.ts | 3 ++- package.json | 8 ++++---- 5 files changed, 18 insertions(+), 17 deletions(-) diff --git a/app/app.component.html b/app/app.component.html index 7f822c8..b1dd313 100644 --- a/app/app.component.html +++ b/app/app.component.html @@ -8,7 +8,7 @@ - + diff --git a/app/app.component.ts b/app/app.component.ts index 4134d0c..0cbf46e 100644 --- a/app/app.component.ts +++ b/app/app.component.ts @@ -113,7 +113,7 @@ export class AppComponent implements OnInit, AfterViewInit { setTimeout(() => { // Get the different Y point for each sidedrawer button startingPointY = btn.getLocationRelativeTo(btn.parent as any).y; - }, 200); + }, 1); this._drawer.on("drawerOpening", () => { translateViewByXandYwithDurationAndCurve( diff --git a/app/pages/main/main.component.html b/app/pages/main/main.component.html index 93ffe3c..bc35bdd 100644 --- a/app/pages/main/main.component.html +++ b/app/pages/main/main.component.html @@ -7,36 +7,36 @@ - - + + - - + + - - + + - - + + - - + + diff --git a/app/shared/animations-helper.ts b/app/shared/animations-helper.ts index 61ddbef..3595dcd 100644 --- a/app/shared/animations-helper.ts +++ b/app/shared/animations-helper.ts @@ -9,12 +9,13 @@ export function translateViewByXandYwithDurationAndCurve( view.translateX = translateFromX; view.translateY = translateFromY; + // view.scaleX = 0; // view.scaleY = 0; view.animate({ translate: { x: translateToX, y: translateToY }, - // scale: {x: 1, y: 1}, + // scale: { x: 1, y: 1 }, duration: duration, curve: curve }); diff --git a/package.json b/package.json index 3a10c85..d0b6c16 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "version": "6.0.0" }, "tns-ios": { - "version": "6.0.0" + "version": "6.0.1" } }, "dependencies": { @@ -26,7 +26,7 @@ "nativescript-app-center": "^1.0.3", "nativescript-cardview": "^3.2.0", "nativescript-permissions": "^1.3.6", - "nativescript-plugin-firebase": "^9.0.1", + "nativescript-plugin-firebase": "^9.0.4", "nativescript-social-share": "^1.5.2", "nativescript-theme-core": "^1.0.6", "nativescript-ui-sidedrawer": "7.0.0", @@ -45,8 +45,8 @@ "mocha": "~5.2.0", "mochawesome": "~3.1.2", "nativescript-dev-appium": "next", - "nativescript-dev-webpack": "1.0.0", - "tns-platform-declarations": "next", + "nativescript-dev-webpack": "1.0.1", + "tns-platform-declarations": "~6.0.1", "tslint": "^5.11.0", "typescript": "~3.4.5" },