New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slider executing onChange/OnComplete (twice) at Init #1095

Closed
Miscellaneous opened this Issue Jan 31, 2012 · 1 comment

Comments

Projects
None yet
1 participant
@Miscellaneous

Miscellaneous commented Jan 31, 2012

@Miscellaneous

This comment has been minimized.

Miscellaneous commented Feb 1, 2012

Replacing set: function in Slider Class, worked for me.

var Slider = new Class({

set: function(step){
    if (!((this.range > 0) ^ (step < this.min))) step = this.min;
    if (!((this.range > 0) ^ (step > this.max))) step = this.max;

    step = Math.round(step);
    return this.checkStep()
        .fireEvent('tick', this.toPosition(step))
        .end();
},

});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment