oj_layer] });
          }
          session.requestAnimationFrame(onXRFrame);
        });

        session.onselectstart = () => {
          count = false;
        }
        session.onselectend = () => {
          count = true;
        }
      }

      function onEndSession(session) {
        session.end();
      }

      function onSessionEnded(event) {
        xrButton.setSession(null);

        renderer = null;
      }

      function onXRFrame(t, frame) {
        let session = frame.session;

        sc