Bad line change

This commit is contained in:
Max Lynch
2015-08-31 11:30:56 -05:00
parent c4a2cd7536
commit 6721f60f4c

View File

@ -4,7 +4,7 @@ import {Ion} from '../ion';
import {IonicConfig} from '../../config/config'; import {IonicConfig} from '../../config/config';
import {IonicComponent} from '../../config/annotations'; import {IonicComponent} from '../../config/annotations';
import {Gesture} from '../../gestures/gesture'; import {Gesture} from '../../gestures/gesture';
import {CSS} from '../../util/dom';
/** /**
* ion-scroll is a non-flexboxed scroll area that can * ion-scroll is a non-flexboxed scroll area that can
@ -29,7 +29,7 @@ export class Scroll extends Ion {
* @param {ElementRef} elementRef TODO * @param {ElementRef} elementRef TODO
* @param {IonicConfig} config TODO * @param {IonicConfig} config TODO
*/ */
constructor(elementRef: ElementRef, config: IonicConfig) { constructor(elementRef: ElementRef, ionicConfig: IonicConfig) {
super(elementRef, ionicConfig); super(elementRef, ionicConfig);
} }
@ -42,7 +42,9 @@ export class Scroll extends Ion {
} }
initZoomScrolling() { initZoomScrolling() {
this.scrollElement.children[0] && this.scrollElement.children[0].classList.add('ion-scroll-zoom'); this.zoomElement = this.scrollElement.children[0];
this.zoomElement && this.zoomElement.classList.add('ion-scroll-zoom');
this.scrollElement.addEventListener('scroll', (e) => { this.scrollElement.addEventListener('scroll', (e) => {
console.log("Scrolling", e); console.log("Scrolling", e);
@ -52,7 +54,7 @@ export class Scroll extends Ion {
this.zoomGesture.listen(); this.zoomGesture.listen();
this.zoomGesture.on('doubletap', (e) => { this.zoomGesture.on('doubletap', (e) => {
console.log('Double tap', e); this.zoomElement.style[CSS.transform] = 'scale(3)';
}); });
} }