Only intersect once the rect has been moved in both dimensions. This broke the mask for some panels. (cherry picked from commit 63f7a50c)