Skip to content

Commit 79b1bb6

Browse files
committed
Move window hiding to 'browserExit'
Fixes close, hide and toolbar 'done' and makes cordova window responsive
1 parent 4376dda commit 79b1bb6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ios/CDVWKInAppBrowser.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,6 @@ - (void)close:(CDVInvokedUrlCommand*)command
8181
return;
8282
}
8383

84-
// Set tmpWindow to hidden to make main webview responsive to touch again
85-
// https://stackoverflow.com/questions/4544489/how-to-remove-a-uiwindow
86-
self->tmpWindow.hidden = YES;
87-
8884
// Things are cleaned up in browserExit.
8985
[self.inAppBrowserViewController close];
9086
}
@@ -699,6 +695,10 @@ - (void)browserExit
699695
// Set navigationDelegate to nil to ensure no callbacks are received from it.
700696
self.inAppBrowserViewController.navigationDelegate = nil;
701697
self.inAppBrowserViewController = nil;
698+
699+
// Set tmpWindow to hidden to make main webview responsive to touch again
700+
// Based on https://stackoverflow.com/questions/4544489/how-to-remove-a-uiwindow
701+
self->tmpWindow.hidden = YES;
702702

703703
if (IsAtLeastiOSVersion(@"7.0")) {
704704
if (_previousStatusBarStyle != -1) {

0 commit comments

Comments
 (0)