/
githubmirror
/
zulip
Обзор
Документация
Войти
/
githubmirror
/
zulip
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
web/src/message_scroll_state.ts
22 строки
760 B
Tim Abbott
narrow: Simplify actively_scrolling data flow.
16 ноя 2023, 04:33
16 ноя 2023, 04:33
0f01eae
Код
Авторство
О чём код?
// Tracks whether the next scroll that will complete is initiated by // code, not the user, and thus should avoid moving the selected // message. export let update_selection_on_next_scroll = true; export function set_update_selection_on_next_scroll(value: boolean): void { update_selection_on_next_scroll = value; } // Whether a keyboard shortcut is triggering a message feed scroll event. export let keyboard_triggered_current_scroll = false; export function set_keyboard_triggered_current_scroll(value: boolean): void { keyboard_triggered_current_scroll = value; } // Whether a scroll is currently occurring. export let actively_scrolling = false; export function set_actively_scrolling(value: boolean): void { actively_scrolling = value; }