Revert "Fix bug in dragging action"

This reverts commit 1a5321d13c7fb5a1a838c63648a1a2241becbab9.