This commit is contained in:
		
							parent
							
								
									1f59ef7813
								
							
						
					
					
						commit
						912b054502
					
				
							
								
								
									
										13
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								README.md
									
									
									
									
									
								
							| @ -18,19 +18,18 @@ | |||||||
|     </a> |     </a> | ||||||
| </p> | </p> | ||||||
| 
 | 
 | ||||||
|  | <p align="center">Screenshots</p> | ||||||
| <p align="center"> | <p align="center"> | ||||||
|     <a href="https://gitea.va.reichard.io/evan/BookManager/src/branch/master/screenshots/web/README.md"> |     <a href="https://gitea.va.reichard.io/evan/BookManager/src/branch/master/screenshots/web/README.md">Web App</a> - <a href="https://gitea.va.reichard.io/evan/BookManager/src/branch/master/screenshots/pwa/README.md">PWA</a> | ||||||
|         --- WEB --- | </p> | ||||||
|     </a> | <p align="center"> | ||||||
|     <a href="https://gitea.va.reichard.io/evan/BookManager/src/branch/master/screenshots/pwa/README.md"> |     <a href="https://drone.va.reichard.io/evan/BookManager" target="_blank"> | ||||||
|         --- PWA --- |         <img src="https://drone.va.reichard.io/api/badges/evan/BookManager/status.svg"> | ||||||
|     </a> |     </a> | ||||||
| </p> | </p> | ||||||
| 
 | 
 | ||||||
| --- | --- | ||||||
| 
 | 
 | ||||||
| [](https://drone.va.reichard.io/evan/BookManager) |  | ||||||
| 
 |  | ||||||
| This is BookManager! Will probably be renamed at some point. This repository contains: | This is BookManager! Will probably be renamed at some point. This repository contains: | ||||||
| 
 | 
 | ||||||
| - Web App / Progressive Web App (PWA) | - Web App / Progressive Web App (PWA) | ||||||
|  | |||||||
| @ -65,23 +65,22 @@ class EBookReader { | |||||||
|     this.rendition.hooks.content.register(getStats); |     this.rendition.hooks.content.register(getStats); | ||||||
| 
 | 
 | ||||||
|     /** |     /** | ||||||
|      * Display @ CFI x 2 (Hack) |      * Display @ CFI x 3 (Hack) | ||||||
|      *   I'm pretty sure this is because we set font size in the rendition |  | ||||||
|      *   render hook that resides in initRenditionListeners, and that the |  | ||||||
|      *   logic in ePub.js runs before or in parallel with the hook when |  | ||||||
|      *   setting the CFI position. |  | ||||||
|      * |      * | ||||||
|      *   By running twice we ensure that the hook ran and set the font size |      *   This is absurd. Only way to get it to consistently show the correct | ||||||
|      *   already, which should now ensure the proper page on the second time |      *   page is to execute this three times. I tried the font hook, | ||||||
|      *   around. |      *   rendition hook, relocated hook, etc. No reliable way outside of | ||||||
|  |      *   running this three times. | ||||||
|      * |      * | ||||||
|      *   Bug: https://github.com/futurepress/epub.js/issues/1194
 |      *   Likely Bug: https://github.com/futurepress/epub.js/issues/1194
 | ||||||
|      **/ |      **/ | ||||||
|     await this.rendition.display(cfi); |     await this.rendition.display(cfi); | ||||||
|     await this.rendition.display(cfi); |     await this.rendition.display(cfi); | ||||||
|  |     await this.rendition.display(cfi); | ||||||
| 
 | 
 | ||||||
|     // Highlight Element - DOM Has Element
 |     // Highlight Element - DOM Has Element
 | ||||||
|     let { element } = await this.getCFIFromXPath(this.bookState.progress); |     let { element } = await this.getCFIFromXPath(this.bookState.progress); | ||||||
|  | 
 | ||||||
|     this.bookState.progressElement = element; |     this.bookState.progressElement = element; | ||||||
|     this.highlightPositionMarker(); |     this.highlightPositionMarker(); | ||||||
|   } |   } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user