WebPlotView.java 文件源码

java
阅读 24 收藏 0 点赞 0 评论 0

项目:firefly 作者:
public void onScroll() {
    int x= getScrollX();
    int y= getScrollY();

    int w= getScrollWidth();
    int h= getScrollHeight();
    if (_lastX!=x || _lastY!=y || _lastW!=w || _lastH!=h) {
        //todo - no lose this optimization - i think it needs to be somewhere else now
        _lastX= x;
        _lastY= y;
        _lastW= w;
        _lastH= h;
    }

    if (_primaryScrollInfo!=null) {
        _primaryScrollInfo._sWidth= w;
        _primaryScrollInfo._sHeight= h;
        _primaryScrollInfo._scrollHPos= x;
        _primaryScrollInfo._scrollVPos= y;
    }
    for(ScrollHandler handler : _scrollHandlerList) {
        handler.onScroll(null);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号