Merge pull request #271 from hiawui/bugfix-invalid-bar

fix: exception when moving invalid bar
This commit is contained in:
Sagar Sharma 2023-01-04 19:42:22 +05:30 committed by GitHub
commit 80458f69ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -368,6 +368,7 @@ export default class Bar {
}
update_progressbar_position() {
if (this.invalid) return;
this.$bar_progress.setAttribute('x', this.$bar.getX());
this.$bar_progress.setAttribute(
'width',
@ -389,6 +390,7 @@ export default class Bar {
}
update_handle_position() {
if (this.invalid) return;
const bar = this.$bar;
this.handle_group
.querySelector('.handle.left')