Skip to content

Commit c1e9dc8

Browse files
committed
fix(offset): fix offset issue with android
1 parent 29168ab commit c1e9dc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export function useFormSmartScroll({
141141
_keyboard.coordinates.end.screenY - currentFocus.height * 2
142142
) {
143143
if (wrapperOffset) {
144-
return -Math.abs(currentFocus.height + wrapperOffset);
144+
return -currentFocus.height;
145145
}
146146

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

0 commit comments

Comments
 (0)