Skip to content

fix: keyboard aoviding 在 iphone 机型上长按拉起键盘#2415

Merged
hiyuki merged 2 commits intomasterfrom
fix/keybaordLongPressOnIphone
Feb 3, 2026
Merged

fix: keyboard aoviding 在 iphone 机型上长按拉起键盘#2415
hiyuki merged 2 commits intomasterfrom
fix/keybaordLongPressOnIphone

Conversation

@shulandmimi
Copy link
Collaborator

@shulandmimi shulandmimi commented Jan 27, 2026

  1. iphone 某些 pro 机型上长按input再松手,可能会出现两次 show 事件,但是 第一次给的键盘高度不对,导致计算错误,本次解除 isShow 仅使用第一次的case,避免出现错误
  2. 在 iphone 某些机型上,长按已聚焦的 input 可能会导致先触发键盘show再触发focus,这样的顺序会导致keyboard回调找不到input实例,需要延迟一下show的执行时机

@hiyuki hiyuki merged commit f8fb3c8 into master Feb 3, 2026
6 checks passed
@hiyuki hiyuki deleted the fix/keybaordLongPressOnIphone branch February 3, 2026 13:07
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

Successfully merging this pull request may close these issues.

2 participants