How sway affects the swing