Prevent line movement taking wrapping into account