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

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

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