Comments (4)
Hey @sejshark. Seems like you've got several questions here, so I'll try to address them separately:
Works ok with Firefox, but I would like it to view inside the img tag that it is in, if that is possible?
Not totally sure I follow, but it sounds like you'd like the zoomed version to display inside the same container as the original image. If that's the case, that's definitely possible. Just set the paneContainer
option to the parent of the primary element passed.
Does not trigger at all using IE 11. … I ran it thru a trace and it looks like it crashes on line #796
styleEl.classList.add('drift-base-styles');
I'm unable to replicate this in IE 11, could you set up a reduced test case in CodePen or similar?
Also, is it possible to get rid of the large dark box that is around the zoomed image?
I'm unsure what you're referring to here. Could you please clarify?
from drift.
Paulstraw, Thank you for your reply. I will try to clarify.
The large dark box, looks like a large panel, about the site of the screen, that floats around the zoomed image.
I have attached a picture of it here.
I set the paneContainer to the parent, to see if it will zoom inside the original image tag. I attached a picture of my results. It sort of works, but as you can see it is larger than the original picture. I am looking for it to zoom but remain the same size inside the original element. Maybe it is not able to do that. Plus it still has the larger panel around it. And it is "underneath" other elements. Z-Index didn't seem to help, but I can try again.
And I will try to produce a smaller test case for IE11, and report back.
from drift.
@sejshark, it looks like your page has got some CSS that's overriding something in Drift, which is causing both of the issues from your above screenshots. Unfortunately, I can't really do much about that without a reduced test case, either.
from drift.
Closing due to inactivity. If you set up a reduced test case, feel free to let me know and reopen!
from drift.
Related Issues (20)
- document is undefined when library included in SSR application HOT 1
- The image is loading twice HOT 1
- I would like to Drift over more than one image HOT 2
- NPM package README needs to be updated HOT 2
- Demo url on readme.md file points to 404 error
- Action Required: Fix Renovate Configuration
- Content-Security-Policy blocking inline styles HOT 3
- The demo on the index.html page from the drift-main folder works very crookedly. HOT 2
- Dependency Dashboard
- Add passive option to event listeners HOT 4
- feat: lazy-load images HOT 3
- The automated release is failing 🚨
- Passive event listeners don't allow preventDefault() HOT 5
- paneContainer is moving with touch dragging HOT 4
- Is there a way to show the zoomed area around the mouse? HOT 1
- feat: add zoom right to left support HOT 6
- TypeError: driftImgs.map is not a function HOT 2
- Call for Maintainer(s) HOT 11
- Is there RTL exemple
- Documentation for usage in react? HOT 1
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 drift.