Working on drag with ugly ternary operators