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

Manually initialized horizontal scroll not working #6

Open
dshook opened this issue Aug 4, 2021 · 2 comments
Open

Manually initialized horizontal scroll not working #6

dshook opened this issue Aug 4, 2021 · 2 comments

Comments

@dshook
Copy link

dshook commented Aug 4, 2021

Hi there, first of all thanks for making this, seems like just what I need.

However, when I was getting it set up I ran into this issue that you can replicate in the Horizontal demo scene:

  1. Turn off Self Initialize in the Recyclable Scroll Rect
  2. Modify the Demo script awake function so it does the initialize with the datasource:
    private void Awake()
    {
        InitData();
        _recyclableScrollRect.Initialize(this);
    }
  1. See that now the area wants to scroll vertically instead of horizontally.
Screen.Recording.2021-08-03.at.9.08.37.PM.mov

I haven't been able to figure out what's causing this yet but I'll update this if I find out any more.

@KimYeonmu
Copy link

Bug occurred in RecyclableScrollRect.cs Start Function

protected override void Start()
{
       // remove
       vertical = true;
       horizontal = false;
       ///

        if (!Application.isPlaying) return;

        if (SelfInitialize) Initialize();
}

Remove vertical = true;, horizontal = false;

@SuperKLA
Copy link

Hello
I can confirm this bug and the provided fix by @KimYeonmu

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

No branches or pull requests

3 participants