I think you might just want `else` here, rather than only doing it if there's no `m_autoScrollCondition` ?

Currently if the condition returns false you won't reset the autoscrolling (you also won't do anything else with it either though)