Jerky horizontal scroll on hover
问题 I'm using the following JS code to build a horizontal image carousel that scrolls on hover. The mousemove event detects the position of the mouse over the container and scrolls to the left or to the right accordingly. Everything works as I expect but if I move the mouse over the container while the animation is running, it becomes a bit jerky. Is there any solution for this? Thanks JS: $( '.carousel-frame ul' ).mousemove( function(e) { var container = $(this).parent(); if ((e.pageX -