vendredi 31 mars 2017

What is the method used for a user to be able to drag a picture around until is centered?

My application allows the user to upload a profile photo, and then use JAvascript to apply a class to make the image look as follows.

enter image description here

Where I ran into an issue is trying to apply the functionality so the user can drag and center the image around. Any idea how this is done ? are there any librabries to implement this functionality?




Aucun commentaire:

Enregistrer un commentaire