Skip to content

Set alignment to MenuRowAlignCenter on submenu return#138

Merged
jwise merged 2 commits into
pebble-dev:masterfrom
frbncis:fix-scroll-submenu-return
Feb 27, 2021
Merged

Set alignment to MenuRowAlignCenter on submenu return#138
jwise merged 2 commits into
pebble-dev:masterfrom
frbncis:fix-scroll-submenu-return

Conversation

@frbncis
Copy link
Copy Markdown
Collaborator

@frbncis frbncis commented Feb 13, 2021

From what I was able to trace through:

  • Before entering the submenu, the menu alignment would be set to MenuRowAlignCenter
  • When returning from the submenu, alignment would be set to MenuRowAlignTop.

The difference in alignment caused changes on span_pos and frame_pos in _menu_layer_update_scroll_offset before and after the submenu.

Fixes #132 hopefully -- if this is not the case I wouldn't mind some pointers on where else I can investigate.

@jwise
Copy link
Copy Markdown
Contributor

jwise commented Feb 13, 2021

Nice work! I'll check it out tonight.

@jwise
Copy link
Copy Markdown
Contributor

jwise commented Feb 13, 2021

I think this doesn't quite fix the issue. But I think it does fix at least one issue! Here's a video of what I mean, so you can see how to replicate this issue:

scroll-direction-confusion.mov

Thanks for taking a crack at it so far! I'm excited to see more people looking at contributing to RebbleOS!

@frbncis
Copy link
Copy Markdown
Collaborator Author

frbncis commented Feb 14, 2021

Thanks for the video! I'll see what I can dig up in the next little while.

@frbncis
Copy link
Copy Markdown
Collaborator Author

frbncis commented Feb 19, 2021

Ok, I think I've got it? Here's what it looks like now:

rebbleos_fix_submenu2

@jwise jwise merged commit 3995f7e into pebble-dev:master Feb 27, 2021
@jwise
Copy link
Copy Markdown
Contributor

jwise commented Feb 27, 2021

Nice work! This has been plaguing RebbleOS for a good long while, and I've never had time to look at it. Thanks much!

@frbncis frbncis deleted the fix-scroll-submenu-return branch February 27, 2021 23:57
tertty pushed a commit to tertty/RebbleOS that referenced this pull request Mar 4, 2021
* Set alignment to MenuRowAlignCenter on submenu return

* Handle setting non-animated content offsets
tertty pushed a commit to tertty/RebbleOS that referenced this pull request Mar 4, 2021
Add menu wrap around (pebble-dev#145)

* Add menu wrap around

Menu's now wrap around in both directions

* Don't infinite scroll if button is being held

Set alignment to MenuRowAlignCenter on submenu return (pebble-dev#138)

* Set alignment to MenuRowAlignCenter on submenu return

* Handle setting non-animated content offsets

Get RebbleOS compiling on Python 3.9 & Arch (pebble-dev#137)

* Get RebbleOS compiling on Python 3.9 & Arch

* stm32_crc: add backwards compatibility, sigh

add switch for python backwards compatibility

Add dvb2  (pebble-dev#140)

* asterix_vla_dvb2

Initial build config. A lot is probably wrong but it's a start :)

* Update UART pin

* asterix_vla_dvb2: fix up pinmappings and flash ID number

* Add SPI locking mechanism for boards that share SPI interface.  Switch vla_dvb2 to ls013b7dh05.

* Swap button GPIO pins

Correct GPIO pins

* Fix asterix build

* Remove nrf52_ls013b7dh03 as it's not needed

* Add dvb2 to CI

* Fix dvb2 make

Don't edit make files at 1AM

Co-authored-by: Joshua Wise <joshua@joshuawise.com>

Notifications - Add "Clear All" option (pebble-dev#148)

* Add Clear All to notification app

* Use consistent UI styling on notification app

Stage changes for the macro PR
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.

ui: scroll position gets confused in submenus in main screen

2 participants