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

I want to know why some of the processes are mobile oriented. #116

Open
KazukiKuriyama opened this issue Jul 24, 2023 · 4 comments
Open
Labels
enhancement New feature or request

Comments

@KazukiKuriyama
Copy link
Contributor

In the following sections, the process is separated from the process for mobile, but the process for other platforms looks smarter. Why separate the processes?

if(isMobile) {
			input.style.bottom = 1 + "vh";
			input.style.left = 5 + "vw";
			input.style.width = 90 + "vw";
			input.style.height = (isMultiLine? 18 : 10) + "vh";
			input.style.fontSize = 5 + "vh";
			input.style.borderWidth = 5 + "px";
			input.style.borderColor = "#000000";
		} else {
			input.style.top = y + "px";
			input.style.left = x + "px";
			input.style.width = width + "px";
			input.style.height = height + "px";
			input.style.fontSize = fontsize + "px";
		}

As for touchAction, it would be better to set it to 'none' since it is currently moved by swiping, but it looks like you intentionally set it to 'manipulation'.
input.style.touchAction = 'manipulation'; // for mobile

@kou-yeung
Copy link
Owner

for mobile device. it is like game app to show the input element above keyboard
Screenshot_20230724-195042184

@kou-yeung
Copy link
Owner

kou-yeung commented Jul 24, 2023

日本語でもっと詳しく説明すると、
オンスクリーンキーボード表示中に画面上のInputField操作( テキスト選択やコピペなど )しにくいため、
ゲームアプリのような見た目を提供してます

@KazukiKuriyama
Copy link
Contributor Author

KazukiKuriyama commented Jul 24, 2023

@kou-yeung
ありがとうございます、日本語の方が助かります!
なるほど、ゲーム用途だとこのデザインが受け入れられやすいということでしょうか。
過去何度かこちらのリポジトリを使わせて頂いてWebGLアプリケーションを顧客に提案してきたのですが、いずれのクライアントもこの動作について違和感があり、ぴったりと元のInputFieldの位置に合わせてほしい旨の要望を受けています。(いずれも最終的にMobile用のコードを削除)
せめてInspectorの設定などで従来方式(現スタンドアロン向け)との切り替えで利用できた方がよいのではないか?という風に考えています。

@kou-yeung
Copy link
Owner

そういうことですね・・
インスペクターから設定するのがいいと思います

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

No branches or pull requests

2 participants