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
commit 8099349dcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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,
}, {

View File

@ -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,
}, {