-
Notifications
You must be signed in to change notification settings - Fork 450
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(desktop): fix can not load after and before msgs
- Loading branch information
Showing
3 changed files
with
83 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Message rate threshold (messages/second) for enabling buffering | ||
export const MESSAGE_RATE_THRESHOLD = 30 | ||
|
||
// Threshold in pixels from bottom to determine if scrolled to bottom | ||
export const SCROLL_BOTTOM_THRESHOLD = 500 | ||
|
||
// Height compensation in pixels for scroll container | ||
export const SCROLL_HEIGHT_COMPENSATION = 160 | ||
|
||
// Maximum number of messages to keep in memory | ||
export const MAX_MESSAGES_COUNT = 40 | ||
|
||
// Maximum scroll offset in pixels to trigger loading more messages | ||
export const SCROLL_OFFSET_MAX_NUM = 100 |
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