ft: rect.left,
				top: rect.top,
				width: element.clientWidth,
				height: element.clientHeight,
			} );

		}

		// really need to use ResizeObserver
		window.addEventListener( 'resize', sendSize );

	}

}

function startWorker( canvas ) {

	canvas.focus();
	const offscreen = canvas.transferControlToOffscreen();
	const worker = new Worker( 'offscreencanvas-worker-orbitcontrols.js', { type: 'module' } );

	const eventHandlers = {
		contextmenu: preventDefaultHandler,
		mousedown: mouseEventHandler,
		mous