Re-sizing two elements through the pointer lock API In this case, Angular and TypeScript, but the basic concept should work in any framework/non-framework.