Commit 34a9214c90da2bf0b3c0d4eef39b70a03d92e3bd
Committed by
GitHub
Merge pull request #2820 from ChantsovaEkaterina/bug/digital-gauge-data-displaying-mobile
[2.5.1]Digital gauge: fix data displaying in mobile browser
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -397,7 +397,7 @@ export default class TbCanvasDigitalGauge { | @@ -397,7 +397,7 @@ export default class TbCanvasDigitalGauge { | ||
397 | } | 397 | } |
398 | var value = tvPair[1]; | 398 | var value = tvPair[1]; |
399 | if(value !== this.gauge.value) { | 399 | if(value !== this.gauge.value) { |
400 | - if (!this.ctx.settings.animation) { | 400 | + if (!this.ctx.settings.animation || this.ctx.isMobile) { |
401 | this.gauge._value = value; | 401 | this.gauge._value = value; |
402 | } | 402 | } |
403 | this.gauge.value = value; | 403 | this.gauge.value = value; |