//以dialog的拖拉为例 if (top<0) {} 在这里,如果top<0,lastTop<top的话,则这两个动作都会执行,就会造成too much recurision if (top>lastTop) {}