update depth after drag