eerne / scrollbar

MooTools Scrollbar class (extends Slider)
http://mild.ch/productslider
MIT License
29 stars 9 forks source link

Make new Scrollbar Troubles in IE #11

Closed lerous closed 12 years ago

lerous commented 12 years ago

I wanna click a button add a new element to the Slider content, so I let the build a new Scrollbar bind on this button so I can make the knob always move to the last, whatever how width the content is...

It's ok in Firefox and Chrome

But here is a problem in IE, when I click the knob or bar, the this.half return several numbers to me, and the last number is return the first number to initialize

I realized everytime I redraw the Scrollbar, the Scrollbar is loop the times I redrawed it...but the IE seems return the number is the first tiem I initialize...

eerne commented 12 years ago

We need a way to recalculate the ratio stuff. Next version should definitely support adding elements or recalculate the content size.

lerous commented 12 years ago

I solved it, I death the event everytime I new that class...

but here's a new problem, our server is mootools 1.45 and my sample is doesn't works on it....

lerous commented 12 years ago

and when I update the more.js to 1.31, and I can't drag the knob on the bar....

eerne commented 12 years ago

Scrollbar should definitely work with MooTools 1.4.5 see http://jsfiddle.net/UYZZ6/3/

lerous commented 12 years ago

auch....my whole code have to change...

eerne commented 12 years ago

Using MooTools Core 1.4.5 and More 1.3.1 is not a good idea IMO.