@@ -11900,10 +11900,14 @@ module.exports.Component = registerComponent('cursor', {
1190011900 return;
1190111901 }
1190211902 CANVAS_EVENTS.DOWN.forEach(function (downEvent) {
11903- canvas.addEventListener(downEvent, self.onCursorDown);
11903+ canvas.addEventListener(downEvent, self.onCursorDown, {
11904+ passive: false
11905+ });
1190411906 });
1190511907 CANVAS_EVENTS.UP.forEach(function (upEvent) {
11906- canvas.addEventListener(upEvent, self.onCursorUp);
11908+ canvas.addEventListener(upEvent, self.onCursorUp, {
11909+ passive: false
11910+ });
1190711911 });
1190811912 }
1190911913 canvas = el.sceneEl.canvas;
@@ -11967,8 +11971,10 @@ module.exports.Component = registerComponent('cursor', {
1196711971 if (this.data.rayOrigin !== 'mouse') {
1196811972 return;
1196911973 }
11970- canvas.addEventListener('mousemove', this.onMouseMove, false);
11971- canvas.addEventListener('touchmove', this.onMouseMove, false);
11974+ canvas.addEventListener('mousemove', this.onMouseMove);
11975+ canvas.addEventListener('touchmove', this.onMouseMove, {
11976+ passive: false
11977+ });
1197211978 el.setAttribute('raycaster', 'useWorldCoordinates', true);
1197311979 this.updateCanvasBounds();
1197411980 },
@@ -15781,9 +15787,15 @@ module.exports.Component = registerComponent('look-controls', {
1578115787 window.addEventListener('mouseup', this.onMouseUp, false);
1578215788
1578315789 // Touch events.
15784- canvasEl.addEventListener('touchstart', this.onTouchStart);
15785- window.addEventListener('touchmove', this.onTouchMove);
15786- window.addEventListener('touchend', this.onTouchEnd);
15790+ canvasEl.addEventListener('touchstart', this.onTouchStart, {
15791+ passive: true
15792+ });
15793+ window.addEventListener('touchmove', this.onTouchMove, {
15794+ passive: true
15795+ });
15796+ window.addEventListener('touchend', this.onTouchEnd, {
15797+ passive: true
15798+ });
1578715799
1578815800 // sceneEl events.
1578915801 sceneEl.addEventListener('enter-vr', this.onEnterVR);
@@ -20719,9 +20731,13 @@ function createOrientationModal(onClick) {
2071920731function applyStickyHoverFix(buttonEl) {
2072020732 buttonEl.addEventListener('touchstart', function () {
2072120733 buttonEl.classList.remove('resethover');
20734+ }, {
20735+ passive: true
2072220736 });
2072320737 buttonEl.addEventListener('touchend', function () {
2072420738 buttonEl.classList.add('resethover');
20739+ }, {
20740+ passive: true
2072520741 });
2072620742}
2072720743
@@ -27845,6 +27861,8 @@ function setupCanvas(sceneEl) {
2784527861 // Prevent overscroll on mobile.
2784627862 canvasEl.addEventListener('touchmove', function (event) {
2784727863 event.preventDefault();
27864+ }, {
27865+ passive: false
2784827866 });
2784927867
2785027868 // Set canvas on scene.
@@ -30158,7 +30176,7 @@ __webpack_require__(/*! ./core/a-mixin */ "./src/core/a-mixin.js");
3015830176// Extras.
3015930177__webpack_require__(/*! ./extras/components/ */ "./src/extras/components/index.js");
3016030178__webpack_require__(/*! ./extras/primitives/ */ "./src/extras/primitives/index.js");
30161- console.log('A-Frame Version: 1.5.0 (Date 2024-05-22 , Commit #7ac47c06 )');
30179+ console.log('A-Frame Version: 1.5.0 (Date 2024-05-23 , Commit #d83d7d70 )');
3016230180console.log('THREE Version (https://github.com/supermedium/three.js):', THREE.REVISION);
3016330181console.log('WebVR Polyfill Version:', pkg.dependencies['webvr-polyfill']);
3016430182
0 commit comments