dpr-change
v0.1.4
Published
Custom devicePixelRatio change event
Downloads
3
Readme
dpr-change
Subscribe to devicePixelRatio change event
Install
npm i dpr-change --save
Usage
import DPR from 'dpr-change';
function _handleDPRChange (ev) {
console.log(`devicePixelRatio changed: ${ev.devicePixelRatio}`);
}
DPR.addEventListener('change', _handleDPRChange);
License
MIT © Noel Delgado