Skip to content
This repository was archived by the owner on Jan 11, 2022. It is now read-only.

Improve scroll performance on Safari macOS #68

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Kukiwon
Copy link

@Kukiwon Kukiwon commented Feb 11, 2020

In the current setup, when the data-sticky-wrap option is used, the scroll performance on Safari (13.0.5) on macOS (10.15.3) is not good. This PR adds a change that the code that updates the position of the sticky element in a requestAnimationFrame callback.
This results in smooth scroll performance on Safari.

SassNinja added a commit to SassNinja/sticky-js that referenced this pull request Jul 9, 2020
@SassNinja SassNinja mentioned this pull request Jul 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant