Fix issue SubWindow::onSubWindowActive on iOS.