Page 1 of 1

Trying to stop ADjustable containers from scrolling on update.

Posted: Sat May 31, 2025 3:53 am
by Tkaudi
Hello forum,

I have been modding Mudlet for a while, and chatgpt has been helping me recently make some trackers.

I notice that sometime over the last year mudlet updated containers to not automatically keep their scroll position when being updated.

I am trying to make it so when scrolling through a tracker it doesn't have to pause, and it won't jump to the bottom of the scroll constantly when updated.

this is what i was working with atm... I am learning Lua and the AI is saying this should work, but it doesn't update at all then.
anyone able to point out where I can find info on this stuff?
Thanks

------------------------------------------------------------
-- Preserve current scroll position (or note if at bottom)
------------------------------------------------------------
local wasAtBottom = GT.combatStatsWindow:isAtBottom()
local oldScroll = nil
if not wasAtBottom then
oldScroll = GT.combatStatsWindow:getScrollPosition()
end