georgealways / lil-gui

Makes a floating panel for controllers on the web. Works as a drop-in replacement for dat.gui in most projects.

Home Page:https://lil-gui.georgealways.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

potential feature: multi-touch capability

xinaesthete opened this issue · comments

I just implemented an iPad remote-control thing with this and notice that you can't drag multiple sliders simultaneously... I reckon it'd be more fun if you could.

Glancing at the code it seems like it might be a relatively small localised change in NumberController.js... doesn't seem like too much else would be implicated but maybe I didn't think it through. I might try to make a PR for this if there's interest.

Hi! Are you increasing the size of the sliders beyond the normal touch styles? I'm mostly surprised you can actually fit more than one finger on the panel! ;)

I agree, it could be cool! But let's weigh the complexity against demand before we merge: the slider is pretty bread and butter and I'm reluctant to change it much for a rare use case. More comments in the PR.

For testing with your homepage, I was just zooming right in on the gui, but the thing I was really wanting it for has lots of panels in a grid layout, and once you start using it, it's not long before you start wanting to be able to tweak several simultaneously...