Commit d43ee036 authored by Roman Sedaikin's avatar Roman Sedaikin

Changed range for rounding sizes.

parent c83512e7
......@@ -288,7 +288,7 @@ open class SkiaLayer(
var rounded = value * contentScale
val diff = rounded - rounded.toInt()
// We check values close to 0.5 and edit the size to avoid white lines glitch
if (diff >= 0.4f && diff <= 0.6f) {
if (diff > 0.4f && diff < 0.6f) {
rounded = value + 1f
} else {
rounded = value.toFloat()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment