1

I have developed a simple scrollbar plugin which will detect down/up button click and move the content inside the div up/down.

So my question is can I prevent the up/down button click, from making the browser main scroll from moving up and down?!

In the image below, i want the scrollbar marked in blue(my plugin) to scroll down when I press down button. But the scroll in red box(Browser scroll) is scrolling !!

enter image description here

Vignesh Subramanian
  • 7,161
  • 14
  • 87
  • 150
  • You need to surround your plugin with a `div` and an `overflow hidden` style to the div. That should get rid of your red scrollbar. Then you need to capture your down arrow key to make your plugin work. Look at [this SO question](http://stackoverflow.com/questions/1402698/binding-arrow-keys-in-js-jquery) – Icemanind Sep 20 '13 at 18:19

0 Answers0