scrollbar[] formspec and formspec updates

Post Reply
bell07
Member
Posts: 604
Joined: Sun Sep 04, 2016 15:15
GitHub: bell07

scrollbar[] formspec and formspec updates

by bell07 » Post

I tried to implement scrollbars in smart_inventory (see scrollbars branch) and basically it does work. The issue is, if I drag the scrollbar, the formspec gets updated to show scrolled screen, at this point the scrollbar is released and I need to grab and drag them again. Expected behavior is the scrolling does continue and the scrollbar not lost the grab even the formspec is updated.

Before I open a bug report, I like to ask if I maybe overseen anything, is it possible to update formspec without loosing the scrollbar grab / drag?

User avatar
joe7575
Member
Posts: 851
Joined: Mon Apr 24, 2017 20:38
GitHub: joe7575
In-game: JoSto wuffi
Location: Germany, in the deep south

Re: scrollbar[] formspec and formspec updates

by joe7575 » Post

I have no answer, but the same problem in my formspecs.
But I am not sure it's a bug. It is more the way how events in formspecs are handled.
Sent from my Commodore 64. Some of my Mods: Tech Age, TechPack, Hyperloop, Tower Crane, Lumberjack, vm16, Minecart, Signs Bot.

User avatar
12Me21
Member
Posts: 873
Joined: Tue Mar 05, 2013 00:36
GitHub: 12Me21
Location: (Ignore all of my posts before 2018)

Re: scrollbar[] formspec and formspec updates

by 12Me21 » Post

Yeah this is very annoying...
It should be relatively simple to fix, though.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests