This commit is contained in:
Max Lynch
2015-09-02 15:34:53 -05:00
parent dc7999d4c8
commit 400bec2a29
6 changed files with 164 additions and 113 deletions

View File

@@ -29,13 +29,4 @@ ion-scroll {
}
.scroll-zoom-wrapper {
display: block;
width: 100%;
text-align: center;
}
.ion-scroll-zoom {
}
}

View File

@@ -16,7 +16,7 @@ import * as util from 'ionic/util';
@IonicComponent({
selector: 'ion-scroll',
properties: [
'scrollX', 'scrollY'
'scrollX', 'scrollY', 'zoom', 'maxZoom'
],
host: {
'[class.scroll-x]': 'scrollX',
@@ -34,6 +34,9 @@ export class Scroll extends Ion {
*/
constructor(elementRef: ElementRef, ionicConfig: IonicConfig) {
super(elementRef, ionicConfig);
this.maxScale = 3;
this.zoomDuration = 250;
}
onInit() {