Open lucamug opened 4 years ago
Most properties can be described only as Integer now because, for example
px : Int -> Length
but browser are actually behaving differently if given non-integer values because the density of screen is getting higher and higher.
This can create unwanted behaviour, especially if these small discrepancy are adding up.
This is an example of an animation that is not smooth as it could be because the height can only be expressed with integer numbers:
https://ellie-app.com/8z6hqHxjtnra1
This is a better example: https://ellie-app.com/8z77CXZD425a1
Most properties can be described only as Integer now because, for example
but browser are actually behaving differently if given non-integer values because the density of screen is getting higher and higher.
This can create unwanted behaviour, especially if these small discrepancy are adding up.
This is an example of an animation that is not smooth as it could be because the height can only be expressed with integer numbers:
https://ellie-app.com/8z6hqHxjtnra1