Added HitTestForSelected method