georgealways

Results 88 comments of georgealways

I did not know they brought that API back! I'll definitely look into it—I'm sure it would make the lib a bit smaller to consolidate mouse/touch listeners. My 2 cents:...

So at quick glance, moving lil-gui to pointerevents would be non-trivial. There's a fair amount of listeners that have subtle differences between mouse and touch. For example, if the user...

gotcha gotcha So I took a pass at moving the logic for the sliders to `pointer*`: https://github.com/georgealways/lil-gui/compare/dev...pointer-events — no real effect on the bundle size, but it does make the...

Thanks @Mugen87—so you're right, that fixes the pull-to-refresh gesture, but it breaks scrolls that start on a slider. Seems kinda insignificant, but it's a pretty common scenario on a phone....

![](https://www.digginginthedirt.de/photos/upload/2018/07/16/20180716084317-b81a7a09.gif) Sure thing ;) I uploaded the 3 pages I've been testing against, using pointer events. 1. When the GUI is auto placed, dragging on the slider should never trigger...

I'm not sure this is common enough to be part of the core library. For now you could override GUI.prototype.open() to close "sibling" folders. I could see the folders broadcasting...

No, at the moment alpha values are going to get chopped off the end of a hex string. It would be nice if the GUI "ignored" the last two characters...

hey @amatyulkov thanks for chiming in (and for using an existing issue 😉) So the main reason we don't have alpha support is because color controllers use the native `input[type=color]`...

Agreed—longer reply in #12. And keep in mind that 300 lines doesn't include any of the color math or CSS 😉

I had a feature like this in mind at one point, but I felt like you could accomplish the same things with a folder. I'm curious—why don't you want to...