Because the feature has been implemented before, what I did was copy code from previous page.
And I find some free time after I went home tonight.
The drag mode should be available now.