Attempt to fix scrolling (again)
This commit is contained in:
parent
4afe680833
commit
4fa5e771e0
2
build.js
2
build.js
|
@ -4,7 +4,7 @@ import { sassPlugin } from 'esbuild-sass-plugin'
|
|||
import * as fs from 'fs'
|
||||
|
||||
const serve = process.env.ESBUILD_SERVE === '1'
|
||||
const baseurl = process.env.ESBUILD_BASEURL || '/'
|
||||
const baseurl = process.env.ESBUILD_BASEURL || ''
|
||||
|
||||
console.log(`Building with baseurl ${baseurl}`)
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ export class SimulationRenderer {
|
|||
public updateWheelListener(ref: RefObject<HTMLCanvasElement>) {
|
||||
if (ref.current) {
|
||||
ref.current.addEventListener('wheel', (event) => {
|
||||
if (!modalIsOpen() && location.pathname === process.env.BASEURL) {
|
||||
if (!modalIsOpen() && location.pathname === `${process.env.BASEURL}/`) {
|
||||
event.preventDefault()
|
||||
|
||||
handleScroll(event, this.camera)
|
||||
|
|
Loading…
Reference in a new issue