'Reactjs - How to assimilate slider and pinch pan function together?

So, i've been trying to implement pinch pan function with slider in react js, i have gotten the value to pinch the image by, but ive no idea now to combine those two features to pinch the image by the value i get from slider.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source