Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a weird stick at top when scrolling bug (#376)
For reasons unknown, getting the width of the stuck element by calling $el.width() _after_ adding the shim to the document causes Chrome 56 to scroll down by the height of the shim, effectively ‘jumping’ the user down the document. This behaviour does not occur in other browsers, nor did it occur in Chrome 55. Somehow, this fixes it. ¯\_(ツ)_/¯
- Loading branch information