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; } }