added panning on middle click