forked from EVOgeek/Vmeda.Online
		
	MOBILE-3833 user-tours: Fix close user tours in iOS 12
This commit is contained in:
		
							parent
							
								
									7c8d372ec2
								
							
						
					
					
						commit
						c3c8594199
					
				| @ -353,7 +353,6 @@ export class CoreCourseContentsPage implements OnInit, OnDestroy, CoreRefreshCon | |||||||
|      * @return Promise resolved when done. |      * @return Promise resolved when done. | ||||||
|      */ |      */ | ||||||
|     protected async showLoadingAndRefresh(sync = false, invalidateData = true): Promise<void> { |     protected async showLoadingAndRefresh(sync = false, invalidateData = true): Promise<void> { | ||||||
|         // Save scroll position to restore it once done.
 |  | ||||||
|         this.updatingData = true; |         this.updatingData = true; | ||||||
|         this.changeDetectorRef.detectChanges(); |         this.changeDetectorRef.detectChanges(); | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -183,6 +183,11 @@ export class CoreUserToursUserTourComponent implements AfterViewInit, OnDestroy | |||||||
|      * Play animation to show that the User Tour has started. |      * Play animation to show that the User Tour has started. | ||||||
|      */ |      */ | ||||||
|     private async playEnterAnimation(): Promise<void> { |     private async playEnterAnimation(): Promise<void> { | ||||||
|  |         if (!('animate' in this.element)) { | ||||||
|  |             // Not supported, don't animate.
 | ||||||
|  |             return; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|         const animations = [ |         const animations = [ | ||||||
|             this.element.animate({ opacity: ['0', '1'] }, { duration: ANIMATION_DURATION }), |             this.element.animate({ opacity: ['0', '1'] }, { duration: ANIMATION_DURATION }), | ||||||
|             this.wrapperElement.value?.animate( |             this.wrapperElement.value?.animate( | ||||||
| @ -198,6 +203,11 @@ export class CoreUserToursUserTourComponent implements AfterViewInit, OnDestroy | |||||||
|      * Play animation to show that the User Tour has endd. |      * Play animation to show that the User Tour has endd. | ||||||
|      */ |      */ | ||||||
|     private async playLeaveAnimation(): Promise<void> { |     private async playLeaveAnimation(): Promise<void> { | ||||||
|  |         if (!('animate' in this.element)) { | ||||||
|  |             // Not supported, don't animate.
 | ||||||
|  |             return; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|         const animations = [ |         const animations = [ | ||||||
|             this.element.animate({ opacity: ['1', '0'] }, { duration: ANIMATION_DURATION }), |             this.element.animate({ opacity: ['1', '0'] }, { duration: ANIMATION_DURATION }), | ||||||
|             this.wrapperElement.value?.animate( |             this.wrapperElement.value?.animate( | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user