mirror of
				https://github.com/ionic-team/ionic-framework.git
				synced 2025-11-04 13:17:56 +08:00 
			
		
		
		
	fix(back-button): ios style
This commit is contained in:
		@ -29,11 +29,11 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
.back-button-ios ion-icon {
 | 
					.back-button-ios ion-icon {
 | 
				
			||||||
  @include padding(0);
 | 
					  @include padding(0);
 | 
				
			||||||
  @include margin(0, -4px, 0, 0);
 | 
					  @include margin(0, -5px, 0, -4px);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  display: inherit;
 | 
					  display: inherit;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  font-size: 1.75em;
 | 
					  font-size: 1.85em;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  pointer-events: none;
 | 
					  pointer-events: none;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -18,11 +18,11 @@ export class Scroll {
 | 
				
			|||||||
  private lastScroll = 0;
 | 
					  private lastScroll = 0;
 | 
				
			||||||
  private detail: ScrollDetail;
 | 
					  private detail: ScrollDetail;
 | 
				
			||||||
  private queued = false;
 | 
					  private queued = false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  @Element() private el: HTMLElement;
 | 
					  @Element() private el: HTMLElement;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  @Prop({ context: 'config'}) config: Config;
 | 
					  @Prop({ context: 'config'}) config: Config;
 | 
				
			||||||
  @Prop({ context: 'dom' }) dom: DomController;
 | 
					  @Prop({ context: 'dom' }) dom: DomController;
 | 
				
			||||||
  @Prop({ context: 'isServer' }) isServer: boolean;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  @Prop() mode: string;
 | 
					  @Prop() mode: string;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -78,9 +78,6 @@ export class Scroll {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  componentWillLoad() {
 | 
					  componentWillLoad() {
 | 
				
			||||||
    if (this.isServer) {
 | 
					 | 
				
			||||||
      return;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if (this.forceOverscroll === undefined) {
 | 
					    if (this.forceOverscroll === undefined) {
 | 
				
			||||||
      this.forceOverscroll = this.mode === 'ios' && ('ontouchstart' in window);
 | 
					      this.forceOverscroll = this.mode === 'ios' && ('ontouchstart' in window);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user