-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix / SCROLLBAR_WIDTH returned value
when on an iOS device and the scrollbar pseudo element was present with an explicit width value, (e.g: `::-webkit-scrollbar {width: 5px}`) the SCROLLBAR_WIDTH variable will hold `5` instead of `0` (which is the value we expect in order to prevent the custom-scrollbars), so, as a result the custom-scrollbars were present, but they sould not. to fix this, we are adding the `::-webkit-scrollbar` pseudo element on the temporal element we use to measure the scrollbar-width setting its `width` property to the `initial` value. This will return `0` on iOS devices.
- Loading branch information
1 parent
3e401b2
commit 86db1db
Showing
2 changed files
with
26 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters