您的位置:首页 > Web前端 > JavaScript

MapXtreme2005 自带的文件夹MapXtremeWebResources中的Interaction.js中的缺陷代码

2011-11-21 14:06 197 查看
DragInteraction.prototype.OnUp=function (e)

{

if (this.drag) {

this.element.style.position='relative';

this.element.style.left = 0;

this.element.style.top = 0;

this.element.style.clip = 'rect(' + 0 + ' ' + this.element.width + ' ' + this.element.height + ' ' + 0 +')';

this.PointsData.AddPoint(e.clientX+GetScrollLeft(this.element), e.clientY+GetScrollTop(this.element));

if (this.onComplete) this.onComplete();

this.PointsData.Clear();

this.drag = false;

}

else

this.PointsData.Clear(); //没拖动要清除选中的点,这条语句必须加否则单击地图但是没有拖动时,下次再单击但没有拖动出现地图自动拖动的现象

}

不知现在的这个js有没有修正过来。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: