fix: exception when moving invalid bar
This commit is contained in:
parent
76be9de801
commit
481896e392
@ -368,6 +368,7 @@ export default class Bar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
update_progressbar_position() {
|
update_progressbar_position() {
|
||||||
|
if (this.invalid) return;
|
||||||
this.$bar_progress.setAttribute('x', this.$bar.getX());
|
this.$bar_progress.setAttribute('x', this.$bar.getX());
|
||||||
this.$bar_progress.setAttribute(
|
this.$bar_progress.setAttribute(
|
||||||
'width',
|
'width',
|
||||||
@ -389,6 +390,7 @@ export default class Bar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
update_handle_position() {
|
update_handle_position() {
|
||||||
|
if (this.invalid) return;
|
||||||
const bar = this.$bar;
|
const bar = this.$bar;
|
||||||
this.handle_group
|
this.handle_group
|
||||||
.querySelector('.handle.left')
|
.querySelector('.handle.left')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user