Skip to content

Commit

Permalink
Merge 26dd6af into 83672ae
Browse files Browse the repository at this point in the history
  • Loading branch information
peuter committed Nov 5, 2019
2 parents 83672ae + 26dd6af commit 2e56791
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions source/class/cv/ui/structure/pure/Slide.js
Expand Up @@ -121,6 +121,9 @@ qx.Class.define('cv.ui.structure.pure.Slide', {
}, this);
slider.on('done', function () {
throttled.abort();
if (this.isSendOnFinish()) {
this._onChangeValue(slider.getValue(), true);
}
}, this);

this.addListener("changeValue", function (ev) {
Expand Down Expand Up @@ -193,9 +196,11 @@ qx.Class.define('cv.ui.structure.pure.Slide', {
* Handle incoming value changes send by the slider widget (e.g. triggered by user interaction)
* @param value {Number}
*/
_onChangeValue: function(value) {
_onChangeValue: function(value, finished) {
if (!this.__initialized || this.__skipUpdatesFromSlider === true) { return; }
if (this.isSendOnFinish() === false || this.__slider.isInPointerMove()) {
if ((this.isSendOnFinish() === true && finished) ||
(this.isSendOnFinish() === false && this.__slider.isInPointerMove())
) {
this._lastBusValue = this.sendToBackend(value, false, this._lastBusValue );
}
this.setValue(value);
Expand Down

0 comments on commit 2e56791

Please sign in to comment.