Fixed variable scope error that prevented correct dragging handling
Merge pull request #3 from volpino/master

Fixed variable scope error that prevented correct dragging handling