Skip to content

Commit

Permalink
Gallery: fix debug bg
Browse files Browse the repository at this point in the history
  • Loading branch information
chenglou committed Dec 7, 2023
1 parent f443cbc commit bc7068e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,10 @@
dummyPlaceholder.style.position = 'absolute'
dummyPlaceholder.style.width = '1px' // make it tiny in case it affects compositing... sigh lamport.azurewebsites.net/pubs/future-of-computing.pdf
document.body.append(dummyPlaceholder)
if (debug) document.documentElement.style.background = 'repeating-linear-gradient(#e66465 0px, #9198e5 300px)'
if (debug) {
document.documentElement.style.background = 'repeating-linear-gradient(#e66465 0px, #9198e5 300px)'
document.documentElement.style.height = '100%'
}

// === hit testing logic. Boxes' hit area should be static and not follow their current animated state usually (but we can do either)
function hitTest2DMode(data, pointerX, pointerY) {
Expand Down

0 comments on commit bc7068e

Please sign in to comment.