Dragging pickedEntity (point) with propertyBag polyline entity

After dragging the point with polyline and release the mouse down listener then try to pan the camera the point and polyline moves even the pickedEntity value is undefined. How can I make the point and polyline stop moving when I pan the or move the camera? Thanks!

Below is my code for LEFT_DOWN and LEFT_UP listener

handleLeftDown(context, { movement }) {
    const pickedObject = context.viewer.scene.pick(movement.position);
    console.log(context.pickedEntity, "747");
    if (
      Cesium.defined(pickedObject) &&
      pickedObject.id === context.pickedEntity
    ) {
      context.dragging = pickedObject;
      context.viewer.scene.screenSpaceCameraController.enableRotate = false;
      context.viewer.scene.screenSpaceCameraController.enableTranslate = false;
      context.viewer.scene.screenSpaceCameraController.enableZoom = false;
      context.viewer.scene.screenSpaceCameraController.enableTilt = false;
      context.viewer.scene.screenSpaceCameraController.enableLook = false;
      context.viewer.scene.logarithmicDepthBuffer = false;
    }
  },

  handleLeftUp(context) {
    if (Cesium.defined(context.dragging)) {
      context.dragging = undefined;
      context.viewer.scene.screenSpaceCameraController.enableRotate = true;
      context.viewer.scene.screenSpaceCameraController.enableTranslate = true;
      context.viewer.scene.screenSpaceCameraController.enableZoom = true;
      context.viewer.scene.screenSpaceCameraController.enableTilt = true;
      context.viewer.scene.screenSpaceCameraController.enableLook = true;
      context.viewer.scene.logarithmicDepthBuffer = true;
    }
  },