mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 04:17:42 +08:00

This commit is making the following changes: - replaces `mobile-keyboard` initializer and `chat-vh` with a new template-less component: `d-vh` - ensures body scroll lock is released when page/tab focus changes - correctly locks body on chat channels and chat threads when composer is focused - removes `bodyScrollFix` as we now use body scroll lock - `onViewportResize` has been debounced to ensure it's not a bad performance vector - adds a reverse option do body scroll lock, this is made to support reversed scroll areas (like chat channels and threads) --------- Co-authored-by: Penar Musaraj <pmusaraj@gmail.com>