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有没有修正过来。
{
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有没有修正过来。
相关文章推荐
- nodejs - webpack - ReactJS - AntDesign 项目搭建环境并运用到thinkphp5框架代码中
- Web---JS-返回上一页并刷新代码整理
- web前端开发upload上传头像js示例代码
- Web 拖拽 js 代码
- web中常用的 js 代码 (1)
- 【web开发】一起来写段JS drag代码
- webpack3实战(3)打包有es6、es7语法的js代码
- webpack清除打包文件夹中多余的js文件
- 一些web开发中常用的、做成cs文件的js代码
- IOS 与 Android WebView 中 JS 调用原生代码
- WEB页面_js代码中,数组数据转字符串 (idArray是数组)
- web--前端之js代码5
- Web Application Project for Visual Studio 2005 中如何同步页面和 designer.cs 代码
- webuploader+springmvc实现多文件上传(html+js+css原创,后台代码借鉴)
- js页面调用WebView中java代码初步
- MapXtreme2005 Web页面上用鼠标中间键控制地图缩放
- javaweb开发-js代码中的function.call的参数
- JavaWeb开发中关于JS校验的代码优化问题
- web项目发布到服务器上,但是修改的css和js文件没有起作用,显示的还是之前没有修改的代码
- 门外汉学Web开发-WordPress代码导读(4-Admin后台模块之JS)