question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v4] Keyboard handling brakes the snap position on dismiss

See original GitHub issue

Bug

When dismissing the keyboard in a list by dragging it down (keyboardDismissMode), if during the dismiss the sheet is dragged back (the interaction is not stoped during the whole process) to the top it is snaped to a non-existing snap point and results in a broken interaction. The expected correct behavior is to snap back to the previous snap point.

Environment info

Library Version
@gorhom/bottom-sheet 4.0.0-alpha.28

Steps To Reproduce

While the keyboard is opened, drag the bottom sheet to the bottom to dismiss the keyboard. While keeping the gesture active drag the sheet to the top.

https://user-images.githubusercontent.com/5794620/129932293-c7162fa1-6f53-4d96-9b64-9287527637ad.MP4

Describe what you expected to happen:

After the keyboard is dismissed the bottom sheet should snap back to the previous position.

Reproducible sample code

https://snack.expo.dev/@ferossgp/keyboard-handling-issue

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Ferossgpcommented, Aug 19, 2021

I’ve debugged the values and seems like the keyboardHeightInContainer gets the value of the hidden state while it seems to me it should use the previous value of the open state.

0reactions
github-actions[bot]commented, Sep 27, 2021

This issue was closed because it has been stalled for 5 days with no activity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Release The Electric Park Brake With NO ... - YouTube
The BEST way to retract electric brake calipers should you not have the scan tool required. In this video I use this method...
Read more >
Get Your Brake Levers Super Dialed! / Mechanic Mondays - EP2
In this episode I go over the pro way of setting up the position of your brake levers by a While often overlooked,...
Read more >
How to replace the rear brakes on a VW CC with ... - YouTube
Here are some of the tools that jimthecarguy useshttps://www.amazon.com/shop/jimthecarguyIn this video I will show you how to replace the ...
Read more >
Key commands for Global Commands in Logic Pro
Key commands for Global Commands in Logic Pro ; Discard Recording and Return to Last Play Position. Command-Period (.) ; Capture as Recording....
Read more >
Controls and configuration - Rigs of Rods Documentation
Some vehicles use ALT+F4 as a command, which closes the game window. To avoid this press F4 then ALT. Some laptops require you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found