define(function(r,t,e){"use strict";function o(r){o.superclass.constructor.call(this,r)}var s=r("./util"),i=(r("./base"),r("./core")),n=r("./animate");s.prefixStyle("transformOrigin");return s.extend(o,i,{init:function(){var r=this;o.superclass.init.call(this),r.resetSize()},getScrollTop:function(){return this.renderTo.scrollTop},getScrollLeft:function(){return this.renderTo.scrollLeft},scrollTop:function(r,t,e,o){var s=this,r=Math.round(r);if(!s.userConfig.lockY){var t=t||0,e=e||"quadratic",i={css:{scrollTop:r},duration:t,easing:e,run:function(r){s.trigger("scroll",{scrollTop:s.getScrollTop(),scrollLeft:s.getScrollLeft()})},useTransition:!1,end:o};s.__timers.y=s.__timers.y||new n(s.renderTo,i),s.__timers.y.stop(),s.__timers.y.reset(i),s.__timers.y.run()}},scrollLeft:function(r,t,e,o){var s=this,r=Math.round(r);if(!s.userConfig.lockX){var t=t||0,e=e||"quadratic",i={css:{scrollLeft:r},duration:t,easing:e,run:function(r){s.trigger("scroll",{scrollTop:s.getScrollTop(),scrollLeft:s.getScrollLeft()})},useTransition:!1,end:o};s.__timers.x=s.__timers.x||new n(s.renderTo,i),s.__timers.x.stop(),s.__timers.x.reset(i),s.__timers.x.run()}},_bindEvt:function(){o.superclass._bindEvt.call(this);var r=this;r.__isEvtBind||(r.__isEvtBind=!0,r.renderTo.addEventListener("scroll",function(t){r.trigger("scroll",{type:"scroll",scrollTop:r.getScrollTop(),scrollLeft:r.getScrollLeft()})},!1))}}),"object"==typeof e&&e.exports?void(e.exports=o):o});