added new helper method for determining the difference between scroll center offset and window center