fix lightning animation z-index

This commit is contained in:
keyan 2023-07-06 18:07:30 -05:00
parent e71e34612c
commit e0d89a289b
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ export function Lightning () {
bolt.draw()
}, [])
return <canvas className='position-fixed' ref={canvasRef} style={{ zIndex: -1 }} />
return <canvas className='position-fixed' ref={canvasRef} style={{ zIndex: 0, pointerEvents: 'none' }} />
}
function Bolt (ctx, options) {