Skip to content

Commit 5fddd2e

Browse files
committed
fix(android): fix android offset
1 parent b9f7288 commit 5fddd2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Provider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ export function useFormSmartScroll({
125125

126126
if (isAndroid) {
127127
if (
128-
currentFocus.position >
128+
currentFocus.position + wrapperOffset >
129129
_keyboard.coordinates.end.screenY - currentFocus.height * 2
130130
) {
131-
return -Math.abs(currentFocus.height / 4);
131+
return -currentFocus.height;
132132
}
133133

134134
return 0;

0 commit comments

Comments
 (0)