mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-04 14:07:32 +00:00
use transform for better performance
This commit is contained in:
parent
44f4532452
commit
9d89cbceed
2 changed files with 4 additions and 6 deletions
|
|
@ -18,7 +18,7 @@ ProgressBar.prototype.set = function(val, text, over) {
|
|||
ProgressBar.prototype.setValue = function(val) {
|
||||
if (val < 0) val = 0;
|
||||
if (val > 1) val = 1;
|
||||
this.$innerBar.css({left: (val - 1) * 100 + '%'});
|
||||
this.$innerBar.css({transform: 'translate(' + ((val - 1) * 100) + '%) translateZ(0)'});
|
||||
};
|
||||
|
||||
ProgressBar.prototype.setText = function(text) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue