@@ -242,6 +242,7 @@ const KeyboardAwareScrollView = forwardRef<
242
242
return ;
243
243
}
244
244
245
+ console . debug ( "maybeScroll - onChangeText" ) ;
245
246
scrollFromCurrentPosition ( customHeight ) ;
246
247
} ,
247
248
[ scrollFromCurrentPosition ] ,
@@ -255,6 +256,7 @@ const KeyboardAwareScrollView = forwardRef<
255
256
"worklet" ;
256
257
257
258
if ( e . selection . start . position !== e . selection . end . position ) {
259
+ console . debug ( "onSelectionChange - onChangeText" ) ;
258
260
scrollFromCurrentPosition ( e . selection . end . y ) ;
259
261
}
260
262
@@ -320,6 +322,7 @@ const KeyboardAwareScrollView = forwardRef<
320
322
if ( focusWasChanged && ! keyboardWillAppear . value ) {
321
323
// update position on scroll value, so `onEnd` handler
322
324
// will pick up correct values
325
+ console . debug ( "maybeScroll - onStart" ) ;
323
326
position . value += maybeScroll ( e . height , true ) ;
324
327
}
325
328
} ,
@@ -330,6 +333,7 @@ const KeyboardAwareScrollView = forwardRef<
330
333
331
334
// if the user has set disableScrollOnKeyboardHide, only auto-scroll when the keyboard opens
332
335
if ( ! disableScrollOnKeyboardHide || keyboardWillAppear . value ) {
336
+ console . debug ( "maybeScroll - onMove" ) ;
333
337
maybeScroll ( e . height ) ;
334
338
}
335
339
} ,
@@ -355,6 +359,7 @@ const KeyboardAwareScrollView = forwardRef<
355
359
const prevLayout = layout . value ;
356
360
357
361
layout . value = input . value ;
362
+ console . debug ( "maybeScroll - animated reaction" ) ;
358
363
scrollPosition . value += maybeScroll ( keyboardHeight . value , true ) ;
359
364
layout . value = prevLayout ;
360
365
}
0 commit comments