testOnmousedown for r:panel refactored