previousNextSlider.js の [戻る] ボタンに配置します。
//Previous
$('.bx-prev').on('mouseenter', function(){
$(this).removeClass(".js-opened").stop().animate({
'margin-left': '-87px'
}, {
duration: 300,
complete: function(){
$(this).css({
'background-image' : 'url(images/nextSliderButton.png)'
}).addClass(".js-opened").stop().animate({
'margin-left' : 0
}, {duration: 100});
}
});
}).on('mouseleave', function(){
if ($(this).hasClass(".js-opened"))
$(this).stop().animate({
'margin-left': '-87px'
}, {
duration: 100,
complete: function(){
$(this).css({
'background-image' : 'url(images/previousSliderButton.png)'
}).removeClass(".js-opened").stop().animate({
'margin-left' : 0
}, {duration: 300});
}
});
else
$(this).stop().animate({
'margin-left': 0
}, {duration: 300});
});
試してみただけで、「クイックマウス移動」の問題を完全に修正できます。