down', (e) => {
      isDragging = true;
      divider.classList.add('dragging');

      // Disable pointer events on the iframe to prevent it from capturing mouse events
      const iframe = document.getElementById('target');
      iframe.style.pointerEvents = 'none';

      e.preventDefault(); // Prevent text selection during drag
    });

    document.addEventListener('mousemove', (e) => {
      if (!isDragging) return;

      const panes = document.getElementById('panes');
      const rect = panes.getBo