Revert "slider does not change position if disabled"
This reverts commit 2c57363efc
.
ugfx_release_2.6
parent
3409fd29c9
commit
3f254e7601
|
@ -262,10 +262,6 @@ void gwinSliderSetPosition(GHandle gh, int pos) {
|
|||
if (gh->vmt != (gwinVMT *)&sliderVMT)
|
||||
return;
|
||||
|
||||
// do not change the position if disabled
|
||||
if (!gwinGetEnabled(gh))
|
||||
return;
|
||||
|
||||
if (gsw->min <= gsw->max) {
|
||||
if (pos < gsw->min) gsw->pos = gsw->min;
|
||||
else if (pos > gsw->max) gsw->pos = gsw->max;
|
||||
|
|
Loading…
Reference in New Issue