bigbite/macy.js

Breakpoint width measurement off. Doesnt take scrollbar into account

adamrobinson opened this issue · 4 comments

It's proving hard to match up the breakpoint values in the plugin with CSS breakpoint values because of the way screen width is calculated.

Testing In Chrome the breakpoint in the plugin triggers 15px wider than the CSS media query (sizing window up). 15px seems to be the exact size of the scrollbar.

jrmd commented

Hey @adamrobinson

Sorry you're having issues with this, I have a fix in mind so I will do some tests and should have fix sorted by tonight

jrmd commented

Hey @adamrobinson this issue has been resolved in version 2.3.1

Let me know if you have any issues with the build.

Thank you @jrmd for such a quick fix it’s really appreciated. Will test out the new version first thing in the morning.

Works great now. Thanks.