Skip to content

Commit

Permalink
force build
Browse files Browse the repository at this point in the history
  • Loading branch information
arcadeperfect committed Nov 27, 2024
1 parent 30071ac commit 712f105
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 19 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,25 @@
</head>

<body class="color-scheme-home">

<script>
window.addEventListener('DOMContentLoaded', (event) => {
// Find the canvas element created by Bevy
const canvas = document.querySelector('canvas');
if (canvas) {
// Save the original focus method
const originalFocus = canvas.focus.bind(canvas);
// Override the focus method to include preventScroll
canvas.focus = function(options) {
if (!options || typeof options !== 'object') {
options = { preventScroll: true };
} else {
options.preventScroll = true;
}
originalFocus(options);
};
}
});
</script>
<div class="grid">
<div class="main-column">
<!-- <a href="https://alexharding.ooo" class="back-arrow">alexharding.ooo</a> <a href="https://bsky.app/profile/alexharding.bsky.social" class="back-arrow">bluesky</a> -->
Expand Down
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// force build

use bevy::gltf::{GltfExtras, GltfSceneExtras};
use bevy::prelude::Color;
use bevy::{
Expand Down

0 comments on commit 712f105

Please sign in to comment.