mirror of
https://github.com/discourse/discourse.git
synced 2026-08-05 10:47:46 -05:00
The previous carousel code was relying on a lot of timers to ensure smoothness and also prevent user from queueing too many actions in a short amount of time. This commit does two things: - removes most of the complexity to rely only on scroll snap - implements optimistic/efficient update for the current index so it's smooth and fast