Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Scroll to start of unread messages when switching buffers#763

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ItsOnlyBinary wants to merge5 commits intokiwiirc:master
base:master
Choose a base branch
Loading
fromItsOnlyBinary:scroll_better

Conversation

@ItsOnlyBinary
Copy link
Collaborator

No description provided.

@ItsOnlyBinary
Copy link
CollaboratorAuthor

rebased

// Find the message id for unread marker
for (let i=0; i<this.filteredMessages.length; i++) {
if (this.shouldShowUnreadMarker(i)) {
let idx= (i-1>=0)? i-1:0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Could do with a quick comment on what this calculation is for

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

wish i could remember what its for :(

}
// No unread messages found scroll to bottom
let forceScroll=this.buffer.setting('force_scroll_to_bottom');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

In what case would it ever not want to go to the bottom here? scrollToUnread() must scroll to the unread messages. If there are none available then unread starts at the very bottom

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This for for people who would like to disable the scroll to unread feature (scroll to unread drives me mad on some channels on discord where i only want to see most recent messages)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It sounds like you're mixing up disabling of this feature and skipping to the bottom when there are no unread messages available?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@prawnsaladprawnsaladprawnsalad left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@ItsOnlyBinary@prawnsalad

[8]ページ先頭

©2009-2025 Movatter.jp