Solved

jScrollPane Mouse scrolling speed

Posted on 2015-02-05
2
65 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
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now