Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dismiss search on touch suggestions list margins #259

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

eduardbosch
Copy link

Hi to all 馃帀

I've fixed an issue where touch is propagated below floating search views when it's focused.

The bug

I've checked the issue in the sample app by removing the 5dp margins to the search_results_list in fragment_sliding_search_results_example_fragment.xml. Then you can see that this bug appears:

wrong_scroll

The fix

To avoid this, I've changed the touch listener to dismiss the search from mSuggestionsSection to the FloatingSearchView itself, because it occupies the whole screen.

Now it works well

good_scroll

@eduardbosch eduardbosch force-pushed the feature/disable_scroll_within_suggestions_margins branch from 9ab2204 to 4f72f61 Compare July 18, 2017 16:07
@eduardbosch
Copy link
Author

Added maven library to use jitpack

@eduardbosch
Copy link
Author

Updated some missing setEnabled refactoring from mSuggestionsSection to view itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant