use float while calculating positionfor indicator so no pixels get lost