Merge pull request #1118 from nymkappa/bugfix/graph-scroll-main-page

Mouse scroll is not captured anymore by graphs in the dashboard page
This commit is contained in:
wiz
2022-01-11 03:31:07 +00:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@@ -70,7 +70,9 @@ export class IncomingTransactionsGraphComponent implements OnInit, OnChanges {
dataZoom: [{ dataZoom: [{
type: 'inside', type: 'inside',
realtime: true, realtime: true,
zoomLock: (this.template === 'widget') ? true : false,
zoomOnMouseWheel: (this.template === 'advanced') ? true : false, zoomOnMouseWheel: (this.template === 'advanced') ? true : false,
moveOnMouseMove: (this.template === 'widget') ? true : false,
maxSpan: 100, maxSpan: 100,
minSpan: 10, minSpan: 10,
}, { }, {

View File

@@ -285,7 +285,9 @@ export class MempoolGraphComponent implements OnInit, OnChanges {
dataZoom: [{ dataZoom: [{
type: 'inside', type: 'inside',
realtime: true, realtime: true,
zoomLock: (this.template === 'widget') ? true : false,
zoomOnMouseWheel: (this.template === 'advanced') ? true : false, zoomOnMouseWheel: (this.template === 'advanced') ? true : false,
moveOnMouseMove: (this.template === 'widget') ? true : false,
maxSpan: 100, maxSpan: 100,
minSpan: 10, minSpan: 10,
}, { }, {