Selecting Position will not scroll the current image up
This commit is contained in:
		
							parent
							
								
									a8689ae26b
								
							
						
					
					
						commit
						7fc04b353b
					
				| 
						 | 
					@ -665,6 +665,9 @@ function init(filename) {
 | 
				
			||||||
        if(["hflip", "vflip", "rotateTimes"].includes(this.name)) {
 | 
					        if(["hflip", "vflip", "rotateTimes"].includes(this.name)) {
 | 
				
			||||||
            //reloadImages is a slow process when multiple images are involved. Only used when rotating/mirroring
 | 
					            //reloadImages is a slow process when multiple images are involved. Only used when rotating/mirroring
 | 
				
			||||||
            reloadImages(); 
 | 
					            reloadImages(); 
 | 
				
			||||||
 | 
					        } else if(this.name === "direction") {
 | 
				
			||||||
 | 
					            // Skips updatePage and updateScale so that the current image doesn't scroll up
 | 
				
			||||||
 | 
					            return updateProgress();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        updatePage();
 | 
					        updatePage();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user