function blockElementPan() {
    const ele = document.getElementById('elementName');
    if (globalScope && simulationArea && simulationArea.objectList) {
        let { objectList } = simulationArea;
        objectList = objectList.filter((val) => val !== 'wires');

        for (let i = 0; i < objectList.length; i++) {
            for (let j = 0; j < globalScope[objectList[i]].length; j++) {
                if (globalScope[objectList[i]][j].isHover()) {
                    ele.style.display = 'block';
                    if (objectList[i] === 'SubCircuit') {
                        ele.innerHTML = `Subcircuit: ${globalScope.SubCircuit[j].data.name}`;
                    } else {
                        ele.innerHTML = `CircuitElement: ${objectList[i]}`;
                    }

                    return;
                }
            }
        }
    }

    ele.style.display = 'none';
    document.getElementById('elementName').innerHTML = '';
}
Function BlockElementPan
This function block the pan of elements since in embed simulator you can only view simulator NOT update