[2.1.7] LuaGuiElement::scroll_to_* methods do not work on scroll-pane

This subforum contains all the issues which we already resolved.
User avatar
Shemp
Inserter
Inserter
Posts: 48
Joined: Mon Jan 19, 2026 6:51 pm
Contact:

[2.1.7] LuaGuiElement::scroll_to_* methods do not work on scroll-pane

Post by Shemp »

Attempting to call one of the directional scroll_to_* methods on a scroll-pane element produces this error:
scroll_to_errors.png
scroll_to_errors.png (209.64 KiB) Viewed 132 times
This reads:

Code: Select all

Cannot execute command. Error: Only callable on text-box.
But the documentation page says they should all work with scroll-pane.

I tested scroll_to_element as well, which is documented to support only scroll-pane, and that does not produce the error.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16967
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.1.7] LuaGuiElement::scroll_to_* methods do not work on scroll-pane

Post by Rseding91 »

Thanks for the report. This is now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”