diff --git a/src/utils.js b/src/utils.js index 3aaa562..c74a47f 100644 --- a/src/utils.js +++ b/src/utils.js @@ -35,4 +35,10 @@ module.exports = { } return actualLeft - elementScrollLeft; }, + + /** + * check if user is using mobile or not + */ + isMobile: /mobile/i.test(window.navigator.userAgent) + };