Commit 034f5b4f authored by 王炽's avatar 王炽

66666

parent e076d7e2
...@@ -1165,8 +1165,8 @@ const onTouchMove = (e) => { ...@@ -1165,8 +1165,8 @@ const onTouchMove = (e) => {
const maxOffset = Math.max(0, totalWidth.value - canvasWidth.value) const maxOffset = Math.max(0, totalWidth.value - canvasWidth.value)
if (newOffset <= 0) { if (newOffset <= 0) {
scrollOffset.value = 0; scrollOffset.value = 0;
} else if (newOffset >= 767){//maxOffset) { } else if (newOffset >= 750){//maxOffset) {
scrollOffset.value = 767//maxOffset scrollOffset.value = 750//maxOffset
}else{ }else{
scrollOffset.value = newOffset; scrollOffset.value = newOffset;
} }
...@@ -1813,9 +1813,10 @@ const onTouchEnd = () => { ...@@ -1813,9 +1813,10 @@ const onTouchEnd = () => {
.graph-container { .graph-container {
position: relative; position: relative;
height: 400rpx; height: 400rpx;
width: 630rpx;
background-color: #fff; background-color: #fff;
border-radius: 10rpx; border-radius: 10rpx;
overflow: hidden; overflow: hidden; // 添加遮罩效果,超出部分不展示
.curve-canvas { .curve-canvas {
width: 100%; width: 100%;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment