[panel] more reliable panel-collision detection