mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 13:48:40 +00:00
fix: slider crash on some platforms
This commit is contained in:
parent
28966739f6
commit
020e85906d
@ -91,8 +91,10 @@ export const sliderPlugin = ViewPlugin.fromClass(
|
|||||||
while (iterator.value) {
|
while (iterator.value) {
|
||||||
// when the widgets are moved, we need to tell the dom node the current position
|
// when the widgets are moved, we need to tell the dom node the current position
|
||||||
// this is important because the updateSliderValue function has to work with the dom node
|
// this is important because the updateSliderValue function has to work with the dom node
|
||||||
iterator.value.widget.slider.from = iterator.from;
|
if (iterator.value?.widget?.slider) {
|
||||||
iterator.value.widget.slider.to = iterator.to;
|
iterator.value.widget.slider.from = iterator.from;
|
||||||
|
iterator.value.widget.slider.to = iterator.to;
|
||||||
|
}
|
||||||
iterator.next();
|
iterator.next();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user