mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-03 22:37:06 +02:00
CODEBASE: Fix passive event listener warning (#2671)
This commit is contained in:
@@ -77,7 +77,7 @@ export function NetworkDisplayWrapper(): React.ReactElement {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const clearSubscription = DarknetEvents.subscribe(() => updateDisplay());
|
const clearSubscription = DarknetEvents.subscribe(() => updateDisplay());
|
||||||
draggableBackground.current?.addEventListener("wheel", (e) => e.preventDefault());
|
draggableBackground.current?.addEventListener("wheel", (e) => e.preventDefault(), { passive: false });
|
||||||
scrollTo(DarknetState.netViewTopScroll, DarknetState.netViewLeftScroll);
|
scrollTo(DarknetState.netViewTopScroll, DarknetState.netViewLeftScroll);
|
||||||
updateDisplay();
|
updateDisplay();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user