bxslider轮播插件
pc端正常,但是切换到移动端后,每次轮播切换时候在控制台会有此提示(控制台报错,但不影响功能)

Uncaught DOMException: Failed to execute 'releasePointerCapture' on 'Element': InvalidPointerId

查看官网demo此报错同样存在

1.查找代码

touchPoints = (typeof orig.changedTouches !== 'undefined') ? orig.changedTouches : [orig];

2.在后面添加如下代码

var chromePointerEvents = typeof PointerEvent === 'function'; if (chromePointerEvents) { if (orig.pointerId === undefined) { return; } } 
作者 铁血 汉子 2018年1月5日
2024/04/26/09:37:59am 2018/1/5/5:49:33
0 2634