gpt4 book ai didi

android - 在 Android 4.4.4 的 webview 中使用 contenteditable-Tag 跳转光标

转载 作者:太空狗 更新时间:2023-10-29 15:26:38 25 4
gpt4 key购买 nike

  1. 创建一个 webview 并放入以下 ​​html 代码

<p contenteditable="true">
Very long text
</p>

  1. 将一些长文本放入 p-tag 中,使其可滚动
  2. 点击 p 标签选择文本的第一行
  3. 向下滚动直到光标不再可见
  4. 尝试通过点击将光标定位到文本中
  5. 光标会跳到错误的位置

提示:

  1. 这仅发生在 Android 4.4.4 上。在其他操作系统上,光标跳转到您点击的位置

  2. 只有当光标超出显示范围时才会出现此问题。如果滚动后光标仍然可见,一切正常

有什么办法解决这个问题吗?

最佳答案

关于android - 在 Android 4.4.4 的 webview 中使用 contenteditable-Tag 跳转光标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25380023/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com