+ // FIXME: There is a potential problem with this way of deleting
+ // event handlers, basically you can not be sure that you delete
+ // the event handler that was create by this wxScrollHelper.
+ // Remove the old event handler from the previous target scroll window.
+ if (m_targetWindow && m_targetWindow != m_win)
+ m_targetWindow->PopEventHandler(TRUE /* Delete old event handler*/);