design-discussion-elm-ui-2 icon indicating copy to clipboard operation
design-discussion-elm-ui-2 copied to clipboard

Change to Floating numbers where it would make sense

Open lucamug opened this issue 5 years ago • 1 comments

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

lucamug avatar Apr 12 '20 07:04 lucamug

This is a better example: https://ellie-app.com/8z77CXZD425a1

lucamug avatar Apr 12 '20 08:04 lucamug