fixing bug with dragging components on firefox