|
@@ -76,14 +76,14 @@ export default {
|
|
|
window.mouseLoc = (x, y) => {
|
|
|
// console.log("ppp", x, y);
|
|
|
// 最大X值
|
|
|
- const maxX = this.fullNum.width - 100;
|
|
|
+ const maxX = this.fullNum.width - 200;
|
|
|
let xRes = x >= maxX ? maxX : x;
|
|
|
- xRes = xRes - 100 <= 0 ? 0 : xRes - 100;
|
|
|
+ // xRes = xRes - 100 <= 0 ? 0 : xRes - 100;
|
|
|
// 最大y值
|
|
|
const domHeight = this.txtDom.clientHeight;
|
|
|
- const maxY = this.fullNum.height - domHeight / 2;
|
|
|
+ const maxY = this.fullNum.height - domHeight;
|
|
|
let yRes = y >= maxY ? maxY : y;
|
|
|
- yRes = yRes - domHeight / 2 <= 0 ? 0 : yRes - domHeight / 2;
|
|
|
+ // yRes = yRes - domHeight / 2 <= 0 ? 0 : yRes - domHeight / 2;
|
|
|
this.txtDom.style.top = yRes + "px";
|
|
|
this.txtDom.style.left = xRes + "px";
|
|
|
};
|
|
@@ -130,7 +130,6 @@ export default {
|
|
|
text-align: center;
|
|
|
pointer-events: none;
|
|
|
font-size: 18px;
|
|
|
- text-shadow: 1px 1px 2px red;
|
|
|
opacity: 0;
|
|
|
// transition: all 0.5s;
|
|
|
|