|
@@ -228,6 +228,7 @@ function handleMoveImg(event){
|
|
|
// console.log('bian2:'+tmpValR)
|
|
|
imgDXS = page.boxLeft - imgXS - imgWXS;//相对于父元素定位
|
|
|
imgDYS = page.boxTop - imgYS - imgWYS;
|
|
|
+
|
|
|
if(wrapHeight > wrapWidth){
|
|
|
drag.css({
|
|
|
width:wrapWidth+'px',
|
|
@@ -248,14 +249,6 @@ function handleMoveImg(event){
|
|
|
top:imgDYS+(de?tmpVal:0) + 'px'
|
|
|
})
|
|
|
}
|
|
|
- // drag.css({
|
|
|
- // width:wrapWidth+'px',
|
|
|
- // height:wrapHeight+'px',
|
|
|
- // marginLeft:'0px',
|
|
|
- // marginTop:'0px',
|
|
|
- // left:imgDXS-(de?tmpValR:0) + 'px',
|
|
|
- // top:imgDYS+(de?tmpValR:0) + 'px'
|
|
|
- // })
|
|
|
}
|
|
|
}
|
|
|
module.exports = {
|