ScrollView - issue when drag item

Hey , everyone!

Please help me!

I created new Scrollview and add image to it.

when I drag and drop images from the scrollview , I get the coordinates x,y<0.

I don’t understand. 

Thanks !

You’re far more likely to persuade someone to take their time to answer if you post code excerpts and debugging logs. You’ve done neither. I also don’t know what you mean by “drag and drop” – is this literal image repositioning or standard scrolling?

That said, have you positioned the scrollView so that the x/y coordinates are offscreen? That could explain it; remember the scrollView is essentially a group. Also if the scrollview is scrolling down, you’re going to get a negative value on the y axis. This is normal.

You’re far more likely to persuade someone to take their time to answer if you post code excerpts and debugging logs. You’ve done neither. I also don’t know what you mean by “drag and drop” – is this literal image repositioning or standard scrolling?

That said, have you positioned the scrollView so that the x/y coordinates are offscreen? That could explain it; remember the scrollView is essentially a group. Also if the scrollview is scrolling down, you’re going to get a negative value on the y axis. This is normal.