From 0de213c3dc7b99b34d24002601efdbb6082aed83 Mon Sep 17 00:00:00 2001 From: goodmice Date: Wed, 17 Nov 2021 15:01:36 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BD=D0=B8=D0=B6=D0=BD=D1=8F=D1=8F=20?= =?UTF-8?q?=D0=B3=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D0=B0=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D0=BA=D1=80=D1=83=D1=82=D0=BA=D0=B8=20=D0=B0=D1=80=D1=85=D0=B8?= =?UTF-8?q?=D0=B2=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Archive/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Archive/index.jsx b/src/pages/Archive/index.jsx index 7333e0f..01de787 100644 --- a/src/pages/Archive/index.jsx +++ b/src/pages/Archive/index.jsx @@ -74,7 +74,7 @@ export default function Archive({idWell}) { const offset = e.deltaY * chartInterval * WHEEL_SENSITIVITY const nextStartDate = +prevStartDate + offset const firstPossibleDate = Math.max(loaded.start, dateLimit.from) - const lastPossibleDate = Math.min(loaded.end, Date.now()) - chartInterval + const lastPossibleDate = Math.min(dateLimit.to, (loaded.end ?? Date.now())) - chartInterval return new Date(Math.max(firstPossibleDate, Math.min(nextStartDate, lastPossibleDate))) }) }