Skip to content

android, iOS: elegant keyboard re-sizing#4089

Merged
Parth merged 4 commits intomasterfrom
eliminate-keyboard-flicker
Jan 9, 2026
Merged

android, iOS: elegant keyboard re-sizing#4089
Parth merged 4 commits intomasterfrom
eliminate-keyboard-flicker

Conversation

@Parth
Copy link
Copy Markdown
Member

@Parth Parth commented Jan 8, 2026

No description provided.

pub context: egui::Context,
pub raw_input: egui::RawInput,
pub screen: ScreenDescriptor,
pub bottom_inset: Option<u32>,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ad-tra this would ideally live in WgpuWorkspace. I think it doesn't need to be an Option, it's default value is probably fine for it's non-existent state. Probably leave a lil comment explaining the overall strategy right here.

Not sure if it should be before or after the screen scaling math.

right: 0.0,
top: 0.0,
bottom: self.renderer.bottom_inset.unwrap_or(0) as f32
/ self.renderer.screen.pixels_per_point,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this should happen here -- i think this should happen at integration time setting the inset. Apple reports these already in the right coordinate space, so I have to scale them up - only for this guy to scale them back down feels wrong.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fyi Android doesn't report them in the right scale

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I figured looking at the code, so Ideally that adjustment happens in an android specific location

@Parth Parth marked this pull request as ready for review January 9, 2026 18:15
@Parth Parth merged commit 425931e into master Jan 9, 2026
1 check failed
@Parth Parth deleted the eliminate-keyboard-flicker branch January 9, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants