Cabbage Logo
Back to Cabbage Site

Filmstrip sliders

But nevertheless for now, you have managed to respect the size of the image :roll_eyes:

Try this one:


Just pushed a fix to git. I have only added code for vertical sliders for now. Test it and let me know if I should take the same approach to the H sliders :wink:

I still don’t see the development branch updated …

Pardon me. Maybe I forgot to push. Give me a sec…

[edit] just pushed now :+1:

It has the typical jump on click, and the negative values still don’t work, but the image keeps its correct dimensions.

Thanks Rory, and waiting for more proof. Very interesting and practical to be able to solve the insertion of controls in the sliders, vertical and horizontal without a film strip.

This is a problem for sure. I am not sure the current implementation will work for this type of thing.

I see the problem there. Easy fix, but the jumping on clicking is not so easy to fix. I need to give it some thought.

A base image to guide, and determine the length of the slider? Something like a lane?

Right now the problem of jumping is because the actual slider will jump whenever a user clicks on it. The fader thumb is not an actual component that accepts mouse clicks. The underlying slider is. Hence the jumps. I would rather avoid having to resize the underlying slider. This had to be done for the filmstrips sliders, but I would like a cleaner solution here. One possible solution is to create a fader thumb component that will sit on top of the slider. I think for now that might be the best option. Otherwise we will also have a jump, UNLESS we are lucky enough to place the mouse in the exact middle of the slider thumb.

Sure, a guide on top of the image as in the filmstrip opcode, but in this case, something that makes a single image slide.

That’s the idea. I wont get a chance to try it out till later today or tomorrow, but I’ll let you know as soon as I have some results.

A layout with an archaic idea …

Yes, this is my current thinking. Nice graphic :wink: But I still think the silder thumb will need to be a component, so it only moves when you drag it. Of course, this presents another issue, when you click on the slider track bar, the component will need to jump too. Ouch, that sounds like it will lead to a bad recursive problem. I’ll know more tomorrow when I try this out.