-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Carousels: Optimise updating button state (#12923)
* Toggle button state when card half in or out of view * Throttle scroll events with requestAnimationFrame * Throttle scroll events with timeout as no animation * Add comments to event throttling functions
- Loading branch information
1 parent
e35a3c6
commit 3fd1c24
Showing
2 changed files
with
47 additions
and
19 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