From 87efc08c8a490a4060e48144c2bee19449f2e965 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Tue, 1 Sep 2015 15:51:49 -0500 Subject: [PATCH] Remove tap location zoom --- ionic/components/scroll/scroll.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ionic/components/scroll/scroll.ts b/ionic/components/scroll/scroll.ts index 763b9f1c7b..537201bdaa 100644 --- a/ionic/components/scroll/scroll.ts +++ b/ionic/components/scroll/scroll.ts @@ -188,13 +188,13 @@ export class Scroll extends Ion { .easing('linear'); let za = new Animation(); - za.add(zi, zw); + za.add(zi);//, zw); if(this.scale > 1) { // Zoom out - zw.fromTo('translateX', posX + 'px', '0px'); - zw.fromTo('translateY', posY + 'px', '0px'); + //zw.fromTo('translateX', posX + 'px', '0px'); + //zw.fromTo('translateY', posY + 'px', '0px'); zi.from('scale', this.scale); zi.to('scale', 1); @@ -207,8 +207,8 @@ export class Scroll extends Ion { } else { // Zoom in - zw.fromTo('translateX', posX + 'px', tx + 'px'); - zw.fromTo('translateY', posY + 'px', ty + 'px'); + //zw.fromTo('translateX', posX + 'px', tx + 'px'); + //zw.fromTo('translateY', posY + 'px', ty + 'px'); zi.from('scale', this.scale); zi.to('scale', this.maxScale);