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

fix(keyboard): Remove iOS keyboard delay (#1904) #2233

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

aeharding
Copy link

@aeharding aeharding commented Nov 6, 2024

This fix aligns with the Android implementation of no delay.

This fix removes all keyboard delay, including the 0.01 second delay for hiding. I believe this delay existed due to a slight flicker observed when setting delay to 0. However, by wrapping the height javascript logic in
requestAnimationFrame() the flicker is no longer present.

I believe this is a better solution than #2230 because it avoids adding animations. (Users can do this themselves by disabling resizing and hooking into keyboardWillShow, didShow, willHide, and didHide events in javascript. Also, if and when an animation is added, should also be added to Android too.)

It also avoids magic/arbitrary delay amounts, like 0.01.

Issue reference: #1904.

This fix aligns with the Android implementation of no delay.

This fix removes all keyboard delay, including the 0.01 second
delay for hiding. I believe this delay existed due to a slight
flicker observed when setting delay to 0. However, by
wrapping the height javascript logic in
`requestAnimationFrame()` the flicker is no longer present.

I believe this is a better solution than ionic-team#2230 because it
avoids adding animations. (Users can do this themselves
by disabling resizing and hooking into keyboardWillShow,
didShow, willHide, and didHide events in javascript.)

It also avoids magic/arbitrary delay amounts, like 0.01.
@theproducer theproducer self-requested a review November 25, 2024 20:00
@hedinasr
Copy link

Is it possible to fix the CI?

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.

4 participants