Impress.js在Chrome中效果很好,但不幸的是,它在Firefox中有点儿错误。我遇到的最大问题是,在Firefox中,幻灯片显示在每次鼠标点击时都会进入下一张幻灯片。有没有人知道禁用此功能的方法?
答案 0 :(得分:2)
转到js / impress.js,删除下面的代码(约783~797行),它会监听点击事件:
// Delegated handler for clicking on step elements
document.addEventListener( "click", function( event ) {
var target = event.target;
// Find closest step element that is not active
while ( !( target.classList.contains( "step" ) &&
!target.classList.contains( "active" ) ) &&
( target !== document.documentElement ) ) {
target = target.parentNode;
}
if ( api.goto( target ) ) {
event.preventDefault();
}
}, false );