mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Tweaks
This commit is contained in:
@@ -29,13 +29,4 @@ ion-scroll {
|
||||
|
||||
}
|
||||
|
||||
.scroll-zoom-wrapper {
|
||||
display: block;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.ion-scroll-zoom {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user