Skip to content

Commit 0d91488

Browse files
Bump aframe-master dist/ builds. (08fe993...d83d7d7)
1 parent d83d7d7 commit 0d91488

File tree

5 files changed

+30
-12
lines changed

5 files changed

+30
-12
lines changed

‎dist/aframe-master.js‎

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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) {
2071920731
function 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)');
3016230180
console.log('THREE Version (https://github.com/supermedium/three.js):', THREE.REVISION);
3016330181
console.log('WebVR Polyfill Version:', pkg.dependencies['webvr-polyfill']);
3016430182

‎dist/aframe-master.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/aframe-master.min.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/aframe-master.min.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ require('./core/a-mixin');
7878
require('./extras/components/');
7979
require('./extras/primitives/');
8080

81-
console.log('A-Frame Version: 1.5.0 (Date 2024-05-22, Commit #7ac47c06)');
81+
console.log('A-Frame Version: 1.5.0 (Date 2024-05-23, Commit #d83d7d70)');
8282
console.log('THREE Version (https://github.com/supermedium/three.js):',
8383
THREE.REVISION);
8484
console.log('WebVR Polyfill Version:', pkg.dependencies['webvr-polyfill']);

0 commit comments

Comments
 (0)