TLabAltoh / TLabWebViewVR

Sample Unity project for using TLabWebView in OculusQuest. Includes Meta XR SDK and XR Interaction Toolkit implementation example.
https://tlabgames.gitbook.io/tlabwebview/
MIT License
43 stars 9 forks source link

PageDown/PageUp? [request] #27

Closed C0170N closed 7 months ago

C0170N commented 7 months ago

I see there is already a method for GetScroll and SetScroll in the scripting API, but would it be possible to add the ability to do pageUp and pageDown? I believe that is a normal method for Android webview but I don't currently see it in the documentation for the scripting API. Thank you

TLabAltoh commented 7 months ago

I have updated the repository by adding Page Down/Up, but now there is a limitation.

The return value of webview's Page Down/Up is ignored because the webview thread is separate from the unity thread, so it's impossible to get the webview function result by synchronising.

Scripting API (Page Down/Up)

C0170N commented 7 months ago

Thank you, this was a great help and it worked well.