separate mouse dragging in an standalone file

though not compeletely