Can't click gameobject when over another trigger?

I can’t click on my gameobject whenever it’s overlapping with a another trigger. You’re supposed to be able to drag and drop the gameobject when you click it. As long as I click it without the gameobject overlapping with the other trigger it’s fine and I can even pass through the trigger. Can anyone help me with this?

void OnMouseDown()
	screenPoint = Camera.main.WorldToScreenPoint(gameObject.transform.position);
	offset = gameObject.transform.position - Camera.main.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, screenPoint.z));

void OnMouseDrag()
	Vector3 curScreenPoint = new Vector3(Input.mousePosition.x, Input.mousePosition.y, screenPoint.z);
	Vector3 curPosition = Camera.main.ScreenToWorldPoint(curScreenPoint) , offset;
	transform.position = curPosition;

Try setting the layer of the trigger to IgnoreRaycast.