Skip to content

GuiScrollPanel(), different minimum value of x and y in viewScroll #488

@bhupenderbindal

Description

@bhupenderbindal

I am trying to use the GuiScrollPanel.
If I move the horizontal and vertical scroll forward and then backward, the minimum value of viewscroll vector's x and y are different, 1 and 0 respectively. I checked it with the below code that prints it while moving the scroll .
Does this have intentional meaning or a bug?

Rectangle view = { 0 };
GuiScrollPanel(Rectangle{ 560, 25, 102, 354 }, NULL, Rectangle{ 560, 25, 300, 1200 }, & viewScroll, & view);

printf("scroll.x : %f \n", viewScroll.x);
printf("scroll.y : %f \n", viewScroll.y);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions