This repository has been archived by the owner on May 10, 2023. It is now read-only.
fix: prevent horizontal scrollbar from flickering during swipe #467
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A minor issue, but when reviewing sentences the TinderCard animation will make the horizontal (and sometimes the vertical scrollbar) appear. This is quite jarring to me.
The TinderCard library recommend using
overflow: hidden
outright, but we need to allow vertical scrolling. I couldn't find a relatively simple solution for the vertical scrollbar.But testing most pages I could not find any which need horizontal scrolling - so using
overflow-x: hidden
should be ok atm. Though it feels a bit dirty to apply the rule to all pages - but making it only apply to the review page isn't straight forward (applying it to the form-div doesn't work due to the padding)Personally I would prefer no animation on desktop, but that's another matter. (and easily solvable using a user-stylesheet)