-
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
Slightly scrolling up in compose box will dismiss the keyboard #3323
Comments
Triggered auto assignment to @bondydaa ( |
tossing to the pool |
Issue reproducible today during KI retests |
Triggered auto assignment to @kevinksullivan ( |
Issue reproducible today during KI retests |
Sorry for the delay on this one. Posted to upwork! |
Triggered auto assignment to @puneetlath ( |
Proposal
// We increase the distance, we need to carefully adjust this value but I suggest it should be equal to the max height of composer
const minimumPixelDistance = 116;
this.oldY = 0;
this.panResponder = PanResponder.create({
// The PanResponder gets focus only when the y-axis movement is over minimumPixelDistance
onMoveShouldSetPanResponderCapture:
(_event, gestureState) => {
// we only close it when direction is bottom and minimumdistance is covered.
if ((gestureState.dy - this.oldY) > 0 && gestureState.dy > minimumPixelDistance) { return true; }
this.oldY = gestureState.dy;
},
// Calls the callback when the swipe down is released; after the completion of the gesture
onPanResponderRelease: this.props.onSwipeDown,
});
}
``` |
Issue reproducible today during KI retests. |
I say we just try 2 first and see how that feels. Then we can add 3 in a follow up issue if we think it's also necessary. |
Hired @parasharrajat ! |
Paid in upwork |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Expected Result:
Scrolling up in a long message should not dismiss the keyboard.
Actual Result:
Slightly scrolling up the message in compose box will dismiss the keyboard.
Action Performed:
Workaround:
User has to recall the keyboard everytime after scrolling up.
Platform:
Where is this issue occurring?
Web
iOS ✔️
Android ✔️
Desktop App
Mobile Web
Version Number: 1.0.61-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
nosound.mp4
Expensify/Expensify Issue URL:
View all open jobs on Upwork
The text was updated successfully, but these errors were encountered: