|
|
@@ -36,13 +36,14 @@ export default {
|
|
|
console.log(x, e.clientX)
|
|
|
if (this.points.length === 0 || Math.abs(x - e.clientX) > 8 || Math.abs(y - e.clientY) > 8) {
|
|
|
this.points.unshift({ x: e.clientX, y: e.clientY })
|
|
|
- if (this.points.length > 20) {
|
|
|
+ if (this.points.length > 30) {
|
|
|
this.points.pop()
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
shiftPoints () {
|
|
|
- if (this.points.length > 20) {
|
|
|
+ if (this.points.length > 10) {
|
|
|
+ this.points.pop()
|
|
|
this.points.pop()
|
|
|
}
|
|
|
if (this.points.length > 0) {
|
|
|
@@ -78,6 +79,6 @@ export default {
|
|
|
right: 0;
|
|
|
width: 100vw;
|
|
|
height: 100vh;
|
|
|
- z-index: 1;
|
|
|
+ z-index: 0;
|
|
|
}
|
|
|
</style>
|