I use mousewheel in jquery to increase the number of divs, the number increases correctly, but scrolling does not stop in Firefox.
$(document).ready(function(){
$('#test').bind('mousewheel DOMMouseScroll', function(event){
var currentValue = parseInt($('#test').text(),10),
newValue = currentValue + 1;
$('#test').text(newValue);
event.preventDefault();
});
});
Fiddle: http://jsfiddle.net/rHVUn/
The violin uses standard mouse wheel detection, but I also used Brandon Aaron's Mousewheel mouse plugin and it has the same problem.
Removing a line that updates the text (I also tried html ()) div resolves the problem, but this is a key part of the code and cannot be removed.
Does anyone know how to solve this problem?
thank
Update: . I found that the problem occurs when my mouse is located directly above the text, if my mouse is inside the field but not above the text (inside the indentation), scrolling is stopped