Owl Carousel 2 でリンクを2回クリックしないと反応しないバグ
Github/Owl Carousel 2 の問題報告で、あるユーザーが2017年5月に質問をし、別のユーザーがバグ修正方法を回答していました。
Problem is however that the click event wont trigger the first time when a touchswipe / touchdrag has been done only the second time the user clicks it will trigger.
This is an Owl Carousel bug.
You can correct it by editing dist/owl.carousel.js line 821.Original:
if (Math.abs(delta.x) > 3 || new Date().getTime() – this._drag.time > 300) {
Bug fix:
if ((Math.abs(delta.x) > 3 || new Date().getTime() – this._drag.time > 300) && event.type === ‘mouseup’) {
コメントを投稿する