mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	android: Fix touch input
This commit is contained in:
		@@ -38,9 +38,11 @@ class FixedRatioSurfaceView @JvmOverloads constructor(
 | 
			
		||||
                newWidth = width
 | 
			
		||||
                newHeight = (width / aspectRatio).roundToInt()
 | 
			
		||||
            }
 | 
			
		||||
            setMeasuredDimension(newWidth, newHeight)
 | 
			
		||||
            val left = (width - newWidth) / 2;
 | 
			
		||||
            val top = (height - newHeight) / 2;
 | 
			
		||||
            setLeftTopRightBottom(left, top, left + newWidth, top + newHeight)
 | 
			
		||||
        } else {
 | 
			
		||||
            setMeasuredDimension(width, height)
 | 
			
		||||
            setLeftTopRightBottom(0, 0, width, height)
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user