Skip to content

Commit

Permalink
updated binaries.
Browse files Browse the repository at this point in the history
  • Loading branch information
KojiNakamaru committed Nov 26, 2023
1 parent 4144434 commit 4e93a79
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dist/package-nofragment/Assets/Plugins/WebViewObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public class WebViewObject : MonoBehaviour
bool mVisibility;
int mKeyboardVisibleHeight;
float mResumedTimestamp;
int mLastScreenHeight;
#if UNITYWEBVIEW_ANDROID_ENABLE_NAVIGATOR_ONLINE
float androidNetworkReachabilityCheckT0 = -1.0f;
NetworkReachability? androidNetworkReachability0 = null;
Expand Down Expand Up @@ -150,6 +151,11 @@ void Update()
mResumedTimestamp = 0.0f;
webView.Call("SetVisibility", mVisibility);
}
if (Screen.height != mLastScreenHeight)
{
mLastScreenHeight = Screen.height;
webView.Call("EvaluateJS", "(function() {var e = document.activeElement; if (e != null && e.tagName.toLowerCase() != 'body') {e.blur(); e.focus();}})()");
}
for (;;) {
if (webView == null)
break;
Expand Down
6 changes: 6 additions & 0 deletions dist/package/Assets/Plugins/WebViewObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public class WebViewObject : MonoBehaviour
bool mVisibility;
int mKeyboardVisibleHeight;
float mResumedTimestamp;
int mLastScreenHeight;
#if UNITYWEBVIEW_ANDROID_ENABLE_NAVIGATOR_ONLINE
float androidNetworkReachabilityCheckT0 = -1.0f;
NetworkReachability? androidNetworkReachability0 = null;
Expand Down Expand Up @@ -150,6 +151,11 @@ void Update()
mResumedTimestamp = 0.0f;
webView.Call("SetVisibility", mVisibility);
}
if (Screen.height != mLastScreenHeight)
{
mLastScreenHeight = Screen.height;
webView.Call("EvaluateJS", "(function() {var e = document.activeElement; if (e != null && e.tagName.toLowerCase() != 'body') {e.blur(); e.focus();}})()");
}
for (;;) {
if (webView == null)
break;
Expand Down
Binary file modified dist/unity-webview-nofragment.unitypackage
Binary file not shown.
Binary file modified dist/unity-webview-nofragment.zip
Binary file not shown.
Binary file modified dist/unity-webview.unitypackage
Binary file not shown.
Binary file modified dist/unity-webview.zip
Binary file not shown.

0 comments on commit 4e93a79

Please sign in to comment.