that true for mouseevent detection,
but how to apply the sliding effect to frame when frame is in layout.