-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
base: master
Are you sure you want to change the base?
Conversation
8cde05f
to
8bcce84
Compare
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
); |
@bobrippling If you'd help me by testing this a bit I'd be interested to hear your thoughts! |
Sorry I missed this the first time round - taken a look, I like it, very nifty feature to have! And it's quite easily discoverable too. Means I have less cause to dig my phone out, works really well. I do have two thoughts:
|
Thanks! I wanted the bigger font of the scroller for what pops up for legibility's sake.
Yeah, this feels a bit unfortunate to me as well.
Yes, that is partly a limitation of the implementation. But I also find it a bit convenient that the scrolling stops at the end (or start, depending of if you scroll up or down) of the current message. So I don't scroll past the message by accident (I use kinetic scroll for my scrollers). The yank happens when another message is added to the array of wrapped strings and the scroller is reinited with that updated array. The yank (currently actually a 40ms timeout) also makes sure there are not other graphical glitches while loading in the next/previous message. The yank doesn't happen when you go back because those messages are already part of the array of wrapped strings. On another note, I'm a bit unhappy with how involved the code for processing, passing around and updating the |
Nice idea, I've not been using my watch with GB for a little while but this might bring it back. And your podcast controls I've recently spotted too - in that other thread
Yeah that's reasonable, I hadn't actually clocked the order of the messages, I think that works well. I suppose we could always try it for a while, perhaps invert it ourselves and see if that feels more "natural". Or yes - try with swipeinv
That's a good point about halting in fact - I think with
Yes I haven't fully got my head round it - I jumped in with a live test of it instead! I can have a go at suggesting some alterations (if I can come up with any), if you would find it useful to have another point of view? |
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