mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 18:25:30 +00:00
Ton't try to render thumb position without a thumb
This commit is contained in:
parent
45dc7a42f7
commit
13a6791f84
1 changed files with 5 additions and 3 deletions
|
|
@ -116,9 +116,11 @@ export default class Slider extends GuiObj {
|
|||
}
|
||||
|
||||
_renderThumbPosition() {
|
||||
const bitmap = UI_ROOT.getBitmap(this._thumb);
|
||||
const left = this._position * (this.getwidth() - bitmap.getWidth() / 2);
|
||||
this._thumbDiv.style.left = px(left);
|
||||
if (this._thumb != null) {
|
||||
const bitmap = UI_ROOT.getBitmap(this._thumb);
|
||||
const left = this._position * (this.getwidth() - bitmap.getWidth() / 2);
|
||||
this._thumbDiv.style.left = px(left);
|
||||
}
|
||||
}
|
||||
|
||||
_renderBindings() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue