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: swipe up/down on msg goes to newer/older msg #3215

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

thyttan
Copy link
Collaborator

@thyttan thyttan commented Feb 26, 2024

Swipe up/down on a shown message to show newer/older message.

I would personally rather map up/down to older/newer. But I think up/down mapped with newer/older makes more sense with how 'tick' and 'cross' swipes are done and how the messages are presented in the scroller list.

Thoughts? @gfwilliams @bobrippling

The change can be tried by installing from my app loader: https://thyttan.github.io/BangleApps/?q=messagegui

@thyttan thyttan force-pushed the messagegui branch 2 times, most recently from 40743f0 to ec5b495 Compare February 26, 2024 22:26
@thyttan thyttan changed the title messagegui: swipe up/down on msg goes to next/prev msg messagegui: swipe up/down on msg goes to newer/older msg Feb 26, 2024
@gfwilliams
Copy link
Member

I'm happy with this idea - but personally I'd prefer if the udHandler code was just in the swipe handler? I think it'd be a lot more readable.

@thyttan thyttan force-pushed the messagegui branch 2 times, most recently from 66e9ed1 to 66d422e Compare February 28, 2024 11:04
@thyttan
Copy link
Collaborator Author

thyttan commented Feb 28, 2024

@gfwilliams I did the change you suggested. Also refactored the function getting the index to a variable, see 66d422e. Tried it on my watch and it works still.

@gfwilliams
Copy link
Member

Thanks! That looks good to me...

@thyttan
Copy link
Collaborator Author

thyttan commented Feb 28, 2024

I'll run this for a day or two and mark as ready for review if everything seems good.

I added the update to my app loader: https://thyttan.github.io/BangleApps/?q=messagegui

@thyttan
Copy link
Collaborator Author

thyttan commented Feb 29, 2024

I believe this is fine.

@thyttan thyttan marked this pull request as ready for review February 29, 2024 11:10
messagegui: small refactor of swipeHandler

`if (ud!=0)` -> `if (ud>0) ... if (ud<0)`
@bobrippling
Copy link
Collaborator

Yeah looks good to me too - I don't use messagegui but the change sounds fair.

@bobrippling bobrippling merged commit 0211c89 into espruino:master Feb 29, 2024
1 check passed
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.

3 participants