data-img-jquery
data-img-jquery copied to clipboard
window width is off by 18px in chrome
for some reason, when using your plugin, I have to subtract 18px from whatever breakpoint I want to use. I even noticed the image on your projects home page changing at this point. For example, the 800x600 switches over at 817px or 818px.
Coul it that it's taking the window's width instead the viewport width?
it uses screen = $(window).width();
maybe window.innerWidth
could help
Update: tested. You can change $(window).width()
for window.innerWidth
. But I think this should be merged with the master? @tomsansome