Solved

jScrollPane Mouse scrolling speed

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HTML5 Looping table certain Cell 11 56
Dynamic Dropdowns 15 33
Html value of radio 14 31
How can I make the first part identical to the second ? 1 26
Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
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…

830 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