natinusala / borealis

Hardware accelerated, controller and TV oriented UI library for PC and Nintendo Switch (libnx)
Apache License 2.0
257 stars 81 forks source link

Fixed scrollviews scrolling when not in focus #80

Closed HamletDuFromage closed 3 years ago

HamletDuFromage commented 3 years ago

When using a tabFrame, the scrollview of the right panel would scroll with a value calculated with the Y of the focused tab, this makes sure scrollviews only scroll if they're in focus.

I only added these viewtypes because they're the only ones I needed, but this can be extended

enum class ViewType
{
  VIEW,
  SIDEBARITEM,
};
natinusala commented 3 years ago

Fixed in yoga via https://github.com/natinusala/borealis/commit/a7ed4576a1057e2c9b29df815f3a8620a50ed537

natinusala commented 3 years ago

Closed as this PR is reimplemented or made irrelevant by the changes on the yoga branch.