I make such a mocap with a switch. I thought through all the logic, everything is easy. It remains only to make one small point:
As seen on the image, made with your own hands. Everything is very simple, there is a parent block which is limited by the macbook frame (Only the screen without frames). And there is a strip. It is centered in position: absolute; . The screenshot has left: 55%; . left: 0; - image border.
The question is how to make it so that only by clicking on the strip itself you can move its position on X, without minus positions and no more than the border (so that 0 and 100% are limited)?
