Try looking here: The only thing is that you need to start dragging on a land and not on a water.

You may disregard text in Russian (the code has comments in English), but you may also consider translating it and the linked article.

Related Query

More Query from same tag