修复:WebGL 下的 InputField #247
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
修复:
添加支持:
解释一下关于合并了 WebGLTextInputSetText 和 WebGLTextInputShow 两个方法:
因为要先正确设置对容器的位置、后进行focus(focus的时候系统叫出屏幕键盘会用当时的位置来计算画面上推幅度)。
现在的结构下Set的时候不知道位置,Show的时候不知道current,如果把这两个调用顺序交换又会Show的时候没container,再考虑到这两个函数是 1:1 调用的于是请求将这两个函数掉合并。