Comments (6)
是修改了哪里的背景图? 可以给个repo复现一下吗?https://codesandbox.io/
from vue-photo-zoom-pro.
因为我这边还需要zoomIn,zoomOut的功能,所以会放大缩小那张原图,一旦放大缩小后,用放大镜就会有定位偏移不准的问题,不知道怎样可以触发一下刷新,让放大镜重新获取最新的原图。
from vue-photo-zoom-pro.
目前是手动调用组件的reset方法来重新计算边界信息, 看起来你是直接修改了img的大小,但是移动事件是绑定到父层的,父元素的大小是不会根据内部transform的改变而改变的
from vue-photo-zoom-pro.
所以不知道怎么处理才能正常。貌似得去改动组件源码的内容了
from vue-photo-zoom-pro.
辛苦发一个复现repo吧
from vue-photo-zoom-pro.
原因是因为设置放大器的位置以及获取的宽度被scale放大了, 所以位置被css 重新 * 2 导致中心点偏移错误
不建议使用scale对该组件进行放大,因为内部使用了absolute进行偏移,会导致放大器以及mask的位置被css放大
from vue-photo-zoom-pro.
Related Issues (18)
- 兼容问题 HOT 8
- 可以添加图片 loading 状态嘛? HOT 1
- 怎么绑定图片的onload的事件呢? HOT 1
- 有时候没效果,报如下这个错误,咋弄,大佬? HOT 1
- 手机拍的图片,展示会旋转90度 HOT 1
- vue-photo-zoom-pro传入的图片有些放大镜无效果 HOT 4
- 有没有swiper-outzoomer呢? HOT 1
- 大佬请问下 HOT 1
- 这个是图片 HOT 1
- It's not possible to import two different things with the same name. Error 'Parsing error: Identifier "vuePhotoZoomPro" has already been declared' HOT 2
- 放大镜的高度设置失败 HOT 3
- UIEvent is not defined HOT 10
- 安装完最新版本的,启动项目报错,是怎么回事? HOT 1
- 动态改变图片url会闪现img src 出错的样式 HOT 1
- 关于vue-photo-zoom-pro.css丢失的问题 HOT 4
- 这个插件ie11下直接回报错 “TouchEvent”未定义 HOT 4
- vue3 报了两个警告 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-photo-zoom-pro.