Hello, today while I was trying Perspective out I've found the slider control acting strangely when in a certain arrangement. I don't know if it is a bug or just a misconfiguration on my part.
The view is a column flex container. There's a percent coordinate container in it. Inside the coordinate container there's a vertical slider.
The same happens with a root row flex container, a coordinate percent container in it, and a horizontal slider in it, same as the first situation but rotated so to speak.
What happens is that the slider does not work properly at runtime; as soon as you click on it, it goes to min or max and after that, you can't do anything more with it, it freezes there.
I've noticed this problem on a page with a hierarchy of flex containers when at a certain point I've decided to add a percent coordinate container to test one thing, but it also occurs inside a minimal view.
This issue does not occur with a fixed coord container.
Using 8.1.43. Tested with Edge 129.0.2792.79 and Firefox 131.0.
Correction - I thought the coord container had to be at second or more position, but after another test I've seen that it is not the case.
This is a simple view where I experience the problem. Row flex container, which contains a percent XY container, which contains a horizontal slider.
I've set XY container's basis to 33% and flex container's justify: flex-end so that the slider is to the right of the view. I'm experiencing the behaviour shown in the GIF.
I tried it, and I get some weird behavior as well.
The issue appears when the slider is in a coordinate container in percent mode, itself embedded in a flex container with either:
direction set to 'row' and justify set to anything but flex-start
direction set to 'row-reverse' and justify set to anything but flex-end
IF the coord container's flex-grow is 0 OR there's something else on its left.
For a vertical slider, it all stays true, but for columns instead of rows, and something above it instead of on its left.
Basically, it seems like it uses the mouse's coordinates in the view, not in the slider's container.