xobotyi / zoom-level Goto Github PK
View Code? Open in Web Editor NEWA comprehensive cross-browser package that allow you to determine page's and element's zoom level
License: MIT License
A comprehensive cross-browser package that allow you to determine page's and element's zoom level
License: MIT License
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When you zoom/pinch in on mobile the zoom level does not update
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have extra dependencies other than zoom-level
. Paste the link to your JSFiddle or CodeSandbox example below:
https://www.loom.com/share/6aa27b335cdf4adeb916187f9b3f3ec9
https://codesandbox.io/s/zoomlevel-live-example-841ns
What is the expected behavior?
Zoom level should change when pinching in
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Retina displays will always have values double that of regular displays. I am only interested in desktop, as I anticipate mobile is much more difficult.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have extra dependencies other than zoom-level
. Paste the link to your JSFiddle or CodeSandbox example below:
I am looking at https://codesandbox.io/s/zoomlevel-live-example-841ns / https://841ns.csb.app/, as well as testing in the console.
What is the expected behavior?
Ideally a retina display can be identified and its value halved so that retina and non-retina displays give the same value.
Which versions of zoom-level
, and which browser / OS / node version are affected by this issue? Did this work in previous versions of zoom-level
?
zoom-level: Latest
Browser: Chrome 81.0.4044.122 / FF 75.0
OS: MBP 16 on 10.15.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Doesn't work in Safari
What is the expected behavior?
I'd expect it to work in Safari
Which versions of zoom-level
, and which browser / OS / node version are affected by this issue? Did this work in previous versions of zoom-level
?
I'm testing on https://841ns.csb.app in Safari 13.0.4 on Mac 10.14.6. Nothing happens when I zoom in or out of the page, even after clicking the Recalc button. Works as expected in Chrome.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.