From ee2f7a97abc91d3dbafe3b6612719a4aa3e5bdc8 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 03 七月 2020 12:03:49 +0800 Subject: [PATCH] 2020-07-03 --- src/views/printTemplate/index.jsx | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/printTemplate/index.jsx b/src/views/printTemplate/index.jsx index 3fd7cd4..b84707d 100644 --- a/src/views/printTemplate/index.jsx +++ b/src/views/printTemplate/index.jsx @@ -49,7 +49,7 @@ let screenY = e.clientY + scrollTop let offsetT = screenY - 75 let _width = parseInt(document.getElementById('darea').style.width) - let offsetL = screenX - (document.body.offsetWidth - _width - 30) / 2 + let offsetL = screenX - (document.body.offsetWidth - _width - 40) / 2 let cx = Math.floor(offsetL / _width * config.width) let cy = Math.floor(offsetT / parseInt(document.getElementById('darea').style.height) * config.height) @@ -98,12 +98,12 @@ height = _c } if (width === 0) { - x -= 4 - width = 8 + x -= 2 + width = 4 } if (height === 0) { - y -= 4 - height = 8 + y -= 2 + height = 4 } if (cx >= x && cx <= x + width && cy >= y && cy <= y + height) { _selectItem = element -- Gitblit v1.8.0