Scrollbar com bug
Iae galéra do IMasters primeiramente obrigado pela ajuda anterior, venho a desenvolve essa barra de rolagem já faz algum tempo,
alguem sabe o motivo deste bug ?
Obrigado desde já.
Link demo: http://migre.me/1EjeG
AS 2.0:
txt.setMask(mask)
scrollbar.onmousedown = function() {
if (this.hitTest(_root._xmouse, _root._ymouse) && txt._height>mask._height) {
this.startDrag(false, scrollbarBG._x, scrollbarBG._y, scrollbarBG._x, scrollbarBG._height-this._height)
txt.onEnterFrame = scrollThumbs;
dragging = true
}
};
scrollbar.onmouseup = function() {
stopDrag()
dragging = false
delete this.onEnterFrame;
};
function scrollThumbs() {
var funkyVar = -this._parent.scrollbar._y*(((this._height-this._parent.scrollbar._height)/(this._parent.scrollbarBG._height-this._parent.scrollbar._height))-1)
this.Y = (funkyVar-this._y)*.2;
this._y += this.Y;
if(Math.abs(funkyVar-this._y)<1 && !dragging){
delete this.onEnterFrame
}
}Discussão (1)
Carregando comentários...