Fixes crashes on ctrl+drag.~
Merge pull request #275 from wongcc966422/issue273

Fixes crashes on ctrl+drag