fix SwapView:blanck screen when clicking during transition, fixes #15832
(cherry picked from commit 141ddd1c1199fab6330dd397a1a3453db920d36b)