I want to create a resize button that will work if we drag it, so :
1. if we drag it to the outside, it will make the object inside the box bigger
2. if we drag it to the inside, it will make the object inside the box smaller
here's the picture :
I have tried with make the resize button draggable, and when it drag to the bigger x axis the object inside the box will get bigger, when it drag to the smaller x axis the object inside the box will get smaller but of course it's failed. maybe anyone know the condition to detect when mouse/tap dragged from resize button position ? or any other solution ? I will appreciate any comment.
sorry for my poor english