Added drag function to event handler

Implemented drag function using inbuilt matrix transforms