fix scroll factor calculate