mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	Fix next page scrolling for pseudo-full screen layouts
This commit is contained in:
		
							parent
							
								
									655372f10f
								
							
						
					
					
						commit
						658865e5ed
					
				@ -319,6 +319,8 @@ def next_screen_location():
 | 
			
		||||
        if cols_left < cols_per_screen:
 | 
			
		||||
            return -1  # Only blank, dummy pages left
 | 
			
		||||
    limit = document.body.scrollWidth - window.innerWidth
 | 
			
		||||
    if limit < col_and_gap:
 | 
			
		||||
        return -1
 | 
			
		||||
    if ans > limit:
 | 
			
		||||
        ans = limit if window.pageXOffset < limit else -1
 | 
			
		||||
    return ans
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user