Improved drag&drop handling, should fix #224
lint fix