Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen not fixed, it scrolls to the bottom of the screen #23

Closed
babazookz opened this issue Jul 17, 2019 · 14 comments
Closed

Screen not fixed, it scrolls to the bottom of the screen #23

babazookz opened this issue Jul 17, 2019 · 14 comments

Comments

@babazookz
Copy link

babazookz commented Jul 17, 2019

Hi, whenever I click on some Input Field the entire screen scrolls to the bottom of the screen.

When full screen, everything is fine.

What could go wrong? Do you want me to record a video?

EDIT:
Video - https://drive.google.com/file/d/1LonEcbX7vDDUwKbh0AFprWbaaPEn0WGp/view?usp=sharing

@babazookz babazookz changed the title Screen not fixed, it moves to the selected input Screen not fixed, it scrolls to the bottom of the screen Jul 17, 2019
@kou-yeung
Copy link
Owner

thanks for report.
can i have more info for this.

  • reproduce Unity version.
  • the inputfield maybe placement outside of screen?
    input element is created same position at inputfield object.
    so, browser will scroll to focus the input element.

@babazookz
Copy link
Author

Unity 2019 is the version.

I am not sure what are you asking me but all my input fields are created on the screen, nothing outside.

Did you see the video?
Do you want me to send you the test scene?

@babazookz
Copy link
Author

One thing to add, when I remove WebGLInput class from InputField object, this does not happen.

@kou-yeung
Copy link
Owner

・Did you see the video?
yes.i saw the video

・Do you want me to send you the test scene?
Yes,Please.

@kou-yeung
Copy link
Owner

ss20190718_001
i tried your sample html.
the html input element is create at bottom left.
so, i want to confirm where is the inputfiled gameobject.

@babazookz
Copy link
Author

But why is that? I did not put my input there.

Please can you check the test scene:
https://drive.google.com/file/d/1e8NbcS9lgZF2_kHamx3Hqgk_WQPbeA6q/view?usp=sharing

@babazookz
Copy link
Author

babazookz commented Jul 18, 2019

And even I am having problems with enabling FullScreen mode after implementing changes (try to do it and let me know what could it be).

Screenshot 2019-07-18 at 10 03 19 (2)

kou-yeung added a commit that referenced this issue Jul 18, 2019
when Canvas renderMode is ScreenSpace - Camera. input element is not …
@kou-yeung
Copy link
Owner

when Canvas renderMode is ScreenSpace - Camera. input element is not calculated correctly.
i have release a new version to fix this issue.
thanks.

@kou-yeung
Copy link
Owner

for the fullscreen issue.
in Unity2019. UnityLoader.js will add "canvas.style.width="100%",canvas.style.height="100%" to the canvas.
i will find other workaround for this.

@babazookz
Copy link
Author

Thank you!
I appreciate it, let me know if I can help you somehow.

I will test the new release with the input location fix and let you know.

@kou-yeung
Copy link
Owner

kou-yeung commented Jul 19, 2019

i found a workaround for Uity2019 to change fullscreen.

same workflow of this thread
#2 (comment)

and edit the "unityContainer" style
<div id="unityContainer" style="width: 960px; height: 600px"></div>

<div id="unityContainer" style="width: 100%; height: 100%"></div>

i will add a tutorial to setup fullscreen.(or release a edited version of Template)

kou-yeung added a commit that referenced this issue Jul 19, 2019
use camera when rendermode is not  screenspace overlay and have camera is setted
@babazookz
Copy link
Author

Ok, I am waiting.

@kou-yeung
Copy link
Owner

i add a step by step tutprial for support fullscreen.
you can try it.^^
https://github.com/kou-yeung/WebGLInput/wiki/Support-FullScreen

@babazookz
Copy link
Author

It is working perfectly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants