Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

messagegui: refactor the messages scroller and use it more (WIP) #3685

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

thyttan
Copy link
Collaborator

@thyttan thyttan commented Dec 3, 2024

WIP

Initializes the scroller with three messages loaded. When scrolling to the top/bottom new messages are loaded.

This is far from merge ready and I'm not sure it should ever be merged. Should be implemented as a setting if to be merged I think.

With that said it can be tried from my app loader: https://thyttan.github.io/BangleApps/?id=messagegui

@thyttan thyttan force-pushed the messagegui branch 9 times, most recently from da9cf1c to 76ddfc5 Compare January 3, 2025 01:57
@thyttan
Copy link
Collaborator Author

thyttan commented Jan 4, 2025

I'm testing/developing this by generating test messages from the WebIDE console field by pasting:

let i = 0;
let msgInterval = setInterval(
  ()=>{  
    print(i);
    GB({"t":"notify","id":1575479849+i,"src":"Hangouts","sender":"sender"+i,"title":"A Name"+i,"body":"message contents that are very similar to one another. in that they are somewhat long, and exactly the same. Let's have it go on and on and so forth for a while to make sure we overflow properly."});
    i++;
    if (i == 9) {clearInterval(msgInterval); delete i; delete msgInterval;}
  }, 500
);

@thyttan
Copy link
Collaborator Author

thyttan commented Jan 4, 2025

@bobrippling If you'd help me by testing this a bit I'd be interested to hear your thoughts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant