Update: 更新xscrollbar
This commit is contained in:
@@ -9,8 +9,8 @@
|
|||||||
class XScrollbar {
|
class XScrollbar {
|
||||||
constructor(dom, options) {
|
constructor(dom, options) {
|
||||||
// 移动端检测
|
// 移动端检测
|
||||||
this.isMobile = window.navigator.userAgent.toLowerCase().indexOf('mobile') != -1;
|
// this.isMobile = window.navigator.userAgent.toLowerCase().indexOf('mobile') != -1;
|
||||||
if (this.isMobile) return;
|
// if (this.isMobile) return;
|
||||||
|
|
||||||
this.$dom = dom;
|
this.$dom = dom;
|
||||||
if (this.$dom.classList.contains('x-scrollbar')) return;
|
if (this.$dom.classList.contains('x-scrollbar')) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user