.Bind will scroll to the top
Hello,
I just want to make a note of a recent fix I installed that was confusing me for quite a few days, just in case anyone else has the same problem.
I have a menu which will slideDown and slideUp as the user traverses it. Each node of the menu was binded to a function that did the logic.
When the frame was small enough to force a scroll bar, clicking on any node, no matter where the scroll bar was, would force it to the top.
Originally, I had
Object.bind("click", handleFunction)
To fix the problem, I changed the above code to:
Object.bind("click", function(event) { handleFunction(event); return false; });
And the problem was solved.
Just wanted to let people know as it was quite an annoyance and I did not find any documentation.
~