Finally, finally fixed dragging from board to tray (and all related bugs)