-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[$500] Chat - Keyboard closes when swiping down the multiline text in the composer #31376
Comments
Triggered auto assignment to @slafortune ( |
Job added to Upwork: https://www.upwork.com/jobs/~01f22d16b807352fe4 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Keyboard dismissed when swiping down What is the root cause of that problem?The App/src/pages/home/report/ReportFooter.js Line 94 in a9743a2
What changes do you think we should make in order to solve the problem?Remove the ResultiOS RPReplay_Final1700066217.MOVAndroid 402313177_7301941956491877_6912841167996883366_n.mp4What alternative solutions did you explore? (Optional) |
Updated proposal |
Updated proposal to include a screen recording |
Updated proposal to add Android screen recording |
@manlaig Thanks for your proposal. Could you check git blame and find the reason why we set |
@hoangzinh Looks like it was added in the commit that originally added the 150cad6#diff-6cbc88ae1e31fd9d7bba715c94c947a8bcb1d2cd3cfcfb7368755994d40b2b02R87 Before that, it was part of the 47d99be#diff-dd4bfa50713397aca8cb40145317936ab0affe19abc2a9c24d6c8849ed75dc9bR139 |
Actually, it originally came from 956eb7a#diff-0fde357effe9cfca0e46ae05dde144722f716890ac7bb5b1d233de2cae5e696cR29 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Swiping down in The Composer during the multiline state causing the keyboard to close What is the root cause of that problem?The root cause of this issue is that
Another possible case that causes this issue is when selecting a text in the Composer and swiping down as in the video below. Screen.Recording.2023-11-18.at.1.37.09.AM.movIn general, any swiping down event(more than the distance of What changes do you think we should make in order to solve the problem?We have first to filter const isTextInputEvent =
event.target?.viewConfig?.uiViewClassName.includes('TextInput'); PanResponder.create({
// The PanResponder gets focus only when the y-axis movement is over minimumPixelDistance & swipe direction is downwards
// eslint-disable-next-line @typescript-eslint/naming-convention
onMoveShouldSetPanResponderCapture: (event, gestureState) => {
//check if the event is from a TextInput
const isTextInputEvent =
event.target?.viewConfig?.uiViewClassName.includes('TextInput');
if (
gestureState.dy - oldYRef.current > 0 &&
gestureState.dy > minimumPixelDistance &&
//does not apply if the event is from a TextInput
!isTextInputEvent
) {
return true;
}
oldYRef.current = gestureState.dy;
return false;
},
// Calls the callback when the swipe down is released; after the completion of the gesture
onPanResponderRelease: onSwipeDown,
}); After this change, we will have two main areas the What alternative solutions did you explore? (Optional) |
📣 @ykhateeb! 📣
|
@slafortune It looks like it's not a bug but it's expected behavior since this change #2074.
Screen.Recording.2023-11-18.at.08.21.29.movJust wanna confirm if you want to cont with expectation of this issue or close this issue. Thanks. |
Contributor details |
|
Contributor details |
|
Ah! Thanks for the details @hoangzinh, yes - I agree this is intentional. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.3.99-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
Keyboard will not close when swiping down the multiline texts in the composer
Actual Result:
Keyboard closes when swiping down the multiline texts in the composer, especially when the swipe is quick
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6277655_1700058942794.Screen_Recording_20231115_154256_New_Expensify.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: