|
|
@@ -319,6 +319,7 @@ export default {
|
|
|
this.$emit('subtraction')
|
|
|
},
|
|
|
bgMouseMove(e) {
|
|
|
+
|
|
|
if (this.isDown) {
|
|
|
if (this.bgMove) {
|
|
|
var width = this.$refs.dragContent.offsetWidth
|
|
|
@@ -328,14 +329,14 @@ export default {
|
|
|
if (left > 0) {
|
|
|
left = 0
|
|
|
}
|
|
|
- if (left < 0 - width + 600) {
|
|
|
+ if (left < 0 - width + window.innerWidth*0.35-50) {
|
|
|
left = this.bgPosition.left
|
|
|
}
|
|
|
|
|
|
if (top > 60) {
|
|
|
top = 60
|
|
|
}
|
|
|
- if (top < 0 - height + 600) {
|
|
|
+ if (top < 0 - height +window.innerHeight*0.5-50) {
|
|
|
top = this.bgPosition.top
|
|
|
}
|
|
|
this.bgPosition = {
|