Slider unusual behaviour
May 12, 2021
I am using two sliders “interconnected” so that when slider 1 is moved, slider 2 resets to position 0 Likewise, if slider 2 is moved, slider 1 resets to 0. When a slider is moved, it displays a layer specific to the slider and slider position.
What I have achieved in most part works OK. For example, when slider 1 is moved to position 3 then layer1-3 is displayed and slider 2 resets to 0. Then if I move slider 2 to position 5, layer 2-5 is displayed and slider 1 resets to 0
If slider 2 is at position 5 and displaying 2-5 and I then I move slider 1 to position 3, slider 2 resets correctly but layer 1-3 is not displayed. If I then moved slider 1 to position 4, release the slider button and then move the slider back to position 3, the layer is displayed correctly. This problem only occurs with slider 1. If I repeat the action reversing the slider order, the problem does not occur.
The explanation is a little convoluted so I have mocked up an example in the attached zip file. Any thoughts as to why this is happening please