Merge pull request #789 from MiguelMedeiros/bugfix-echarts-mobile-mouseover

Disable mouseover legend for mobile users.
fixes #781
This commit is contained in:
softsimon 2021-09-17 03:24:10 +04:00 committed by GitHub
commit 401506a103
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,7 +142,7 @@ export class MempoolGraphComponent implements OnInit, OnChanges {
}, },
color: chartColors, color: chartColors,
tooltip: { tooltip: {
show: true, show: (window.innerWidth >= 768) ? true : false,
trigger: 'axis', trigger: 'axis',
alwaysShowContent: false, alwaysShowContent: false,
position: (pos, params, el, elRect, size) => { position: (pos, params, el, elRect, size) => {