Is there a reason why you don't initialize m_panning_on as well?