| author | raph |
| Mon, 23 Nov 2009 15:14:29 +0100 | |
| changeset 0 | 40c8f766c9b8 |
| permissions | -rw-r--r-- |
| 0 | 1 |
/* |
2 |
Copyright (c) 2009, Yahoo! Inc. All rights reserved. |
|
3 |
Code licensed under the BSD License: |
|
4 |
http://developer.yahoo.net/yui/license.txt |
|
5 |
version: 3.0.0 |
|
6 |
build: 1549 |
|
7 |
*/ |
|
8 |
YUI.add("anim-scroll",function(B){var A=Number;B.Anim.behaviors.scroll={set:function(F,G,I,J,K,E,H){var D=F._node,C=([H(K,A(I[0]),A(J[0])-A(I[0]),E),H(K,A(I[1]),A(J[1])-A(I[1]),E)]);if(C[0]){D.set("scrollLeft",C[0]);}if(C[1]){D.set("scrollTop",C[1]);}},get:function(D){var C=D._node;return[C.get("scrollLeft"),C.get("scrollTop")];}};},"3.0.0",{requires:["anim-base"]}); |