Simplify calcPercentage function
The `size` and the two inner `100` multiplications cancel out. In other words, the result is independent of the original image's size, because both `pos` and `renderedSize` are based on the rendered size of the image, not its actual size.
Showing
Please register or sign in to comment