Fixed loss of decimal part

Fixed loss of decimal part of values for layer movement and auto-scroll
speed