Skip to content

Commit

Permalink
fix(offset): fix offset issue with android
Browse files Browse the repository at this point in the history
  • Loading branch information
EQuimper committed Jun 14, 2024
1 parent 29168ab commit c1e9dc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export function useFormSmartScroll({
_keyboard.coordinates.end.screenY - currentFocus.height * 2
) {
if (wrapperOffset) {
return -Math.abs(currentFocus.height + wrapperOffset);
return -currentFocus.height;
}

return -Math.abs(currentFocus.height / 4);
Expand Down

0 comments on commit c1e9dc8

Please sign in to comment.