From 02798db449c3c94418d1fad1a8ce325cec5b8304 Mon Sep 17 00:00:00 2001 From: nymkappa Date: Tue, 11 Jan 2022 12:16:09 +0900 Subject: [PATCH] Mouse scroll is not capture anymore by graphs in the dashboard page --- .../incoming-transactions-graph.component.ts | 2 ++ .../src/app/components/mempool-graph/mempool-graph.component.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/frontend/src/app/components/incoming-transactions-graph/incoming-transactions-graph.component.ts b/frontend/src/app/components/incoming-transactions-graph/incoming-transactions-graph.component.ts index 4f982a269..3ae3bde51 100644 --- a/frontend/src/app/components/incoming-transactions-graph/incoming-transactions-graph.component.ts +++ b/frontend/src/app/components/incoming-transactions-graph/incoming-transactions-graph.component.ts @@ -70,7 +70,9 @@ export class IncomingTransactionsGraphComponent implements OnInit, OnChanges { dataZoom: [{ type: 'inside', realtime: true, + zoomLock: (this.template === 'widget') ? true : false, zoomOnMouseWheel: (this.template === 'advanced') ? true : false, + moveOnMouseMove: (this.template === 'widget') ? true : false, maxSpan: 100, minSpan: 10, }, { diff --git a/frontend/src/app/components/mempool-graph/mempool-graph.component.ts b/frontend/src/app/components/mempool-graph/mempool-graph.component.ts index 6baa96596..11618e35d 100644 --- a/frontend/src/app/components/mempool-graph/mempool-graph.component.ts +++ b/frontend/src/app/components/mempool-graph/mempool-graph.component.ts @@ -285,7 +285,9 @@ export class MempoolGraphComponent implements OnInit, OnChanges { dataZoom: [{ type: 'inside', realtime: true, + zoomLock: (this.template === 'widget') ? true : false, zoomOnMouseWheel: (this.template === 'advanced') ? true : false, + moveOnMouseMove: (this.template === 'widget') ? true : false, maxSpan: 100, minSpan: 10, }, {