Closed ghost closed 6 years ago
I downloaded the master and there are examples for disabling for media queries in the demo / build
directory
You can't disable for actual device tablets and/or phones with this script, or any other similar script. If you need to do that, I would use server side detection, for example Mobile Detect php class.
@carasmo Thank you - at least that's a start!
Say if I want to disable the script from 768px (typical tablet) downwards how would I manipulate this to cater for that kind of request?
queries: {
980: {
disable: true
}
}
Change the breakpoint to 767. You can see what options in the read me: :
Of course! 🤪
thank you
Cool. Please close, this is not a bug report or a feature request. Thanks!
I am having trouble understanding how I can disable this plugin for mobile and tablet users. at the moment I've tried using the
destroy
and theonresize
options but I am obviously doing something wrong. Can anyone direct me on how these are supposed to be combined so I can create the state change I need?Thanks!