While dragging a slider re-enable the Apply button if the slider value is changed...
authorterencehill <piuntn@gmail.com>
Mon, 4 Jan 2016 13:57:43 +0000 (14:57 +0100)
committerGitLab <gitlab@gitlab.com>
Thu, 28 Jan 2016 20:16:18 +0000 (20:16 +0000)
qcsrc/menu/item/slider.qc

index acadb68..dcfe68a 100644 (file)
                                if (me.valueStep) v = floor(0.5 + v / me.valueStep) * me.valueStep;
                                me.setValue_noAnim(me, v);
                                if(me.applyButton)
-                                       me.applyButton.disabled = (me.previousValue == me.value);
+                               if(me.previousValue != me.value)
+                                       me.applyButton.disabled = false;
                        }
                        else
                        {
                                me.setValue(me, me.previousValue);
-                               if(me.applyButton)
-                                       me.applyButton.disabled = true;
                        }
                }