Solved

jScrollPane Mouse scrolling speed

Posted on 2015-02-05
2
87 Views
Last Modified: 2015-04-13
Hello Experts,

I am editing a page that uses the jScrollPane on a DIV (http://jscrollpane.kelvinluck.com/).

While searching for slowing the scroll speed (mouse scrolling speed) I see many result with the same answer e.g. http://alvinalexander.com/blog/post/jfc-swing/how-increase-speed-jscrollpane-mouse-wheel

How can integrate this line of code and where.

myJScrollPane.getVerticalScrollBar().setUnitIncrement(16);

Open in new window

0
Comment
Question by:Refael
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
ID: 40593383
Hi,
it seems that there is a language match/mismatch. The link you referenced is from the Java Swing library:
http://docs.oracle.com/javase/7/docs/api/javax/swing/JScrollPane.html
which includes a class which has the same name as the jQuery plugin.
Do you have a link to your problematic page?
I tried to setup a small sample here:
http://jsfiddle.net/EE_RainerJ/jymjf0uh/

Can you perhaps explain, what your exact problem in regards to speed is?
Thanks and HTH
Rainer
0
 

Author Closing Comment

by:Refael
ID: 40721928
Thank you! I just used your code. I guess something with my code was somewhere causing the issue .
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question