From 8411a416f18eb548e9780b1b0bbc9cef93b9a6d1 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Tue, 11 May 2021 17:28:47 +0800
Subject: [PATCH] dom移动事件更改
---
public/xcxh5map/js/move.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/public/xcxh5map/js/move.js b/public/xcxh5map/js/move.js
index c05cb49..fb1ecbe 100644
--- a/public/xcxh5map/js/move.js
+++ b/public/xcxh5map/js/move.js
@@ -50,7 +50,7 @@
var that = this;
if(state != 14){
that.state = state;
- console.log(that.state);
+ // console.log(that.state);
}
that.getDomPosition();//获取dom位置
that.getMapHeight();//获取地图高度
@@ -67,15 +67,15 @@
var h = that.__yy - that.__sy//鼠标移动距离y
if (that.state == 'down') {//两种模式
- console.log(that.state);
+ // console.log(that.state);
if (h >= 0 && h + that.__dy <= that.__wy - 20) {
that.changeDomPosition(0, h, h + that.__dy);//改变位置
- console.log(that.state,h + that.__dy,112);
+ // console.log(that.state,h + that.__dy,112);
}
} else if (that.state == 'up') {
if (h >= -that.__dy && h <= that.__wy - 20) {
that.changeDomPosition(0, h, h + that.__wy - 20);//改变位置
- console.log(that.state,h + that.__wy - 20,112);
+ // console.log(that.state,h + that.__wy - 20,112);
}
}
--
Gitblit v1.9.3