I need to change the behavior of the scrollbar when the user presses up/down arrows on the scroll bar. Specifically, I'd like to be able to set the number of pixels that scrollTop changes by when this happens. I have a div with no content that I set a height equal to the number of discrete positions I need to scroll through. I then tried to set lineHeight and fontSize to 1 and 1px respectively. This works on a mac with FF, but on a PC with FF it returns a delta of 2px on each scroll event. I would be fine with accepting the scrollTop deltas that the browser defaults to if there was some way to read them. I can't detect when the user presses the scroll arrows as far as I know. All I can do is register for the onscroll event after the click has happened with no indication of what click the user actually did (i.e. move the scroll bar, click on scroll up/down etc...).
Any thoughts and/or suggestions would be greatly appreciated. Edward --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
