Skip to content

Commit

Permalink
fix(web): overshoot bounds in constrained mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jahorton committed Oct 12, 2023
1 parent cac6aad commit f67549a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export default class SubkeyPopup {
basePadding,
// bottom: ensure the recognition zone includes the row of the base key.
// basePadding is already negative, but bottomDistance isn't.
bottomDistance > basePadding ? -bottomDistance : basePadding
-bottomDistance < basePadding ? -bottomDistance : basePadding
]);

const topContainer = vkbd.topContainer;
Expand Down

0 comments on commit f67549a

Please sign in to comment.