fixed "origin" function (removed scroll subtracting)