potential fix for #984

-add a timeout for dragout event on drag event set drag true to prevent
flickering