FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

smooth scrolling

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows
View previous topic :: View next topic  
Author Message
joeker
Junior Member


Joined: 31 Mar 2007
Posts: 58

PostPosted: Sat Apr 14, 2007 5:29 am    Post subject: smooth scrolling Reply with quote

Hi,

I am working on a project to control firefox for which I modified the "Mouse Pointing" script.
Is there a way to make the scrolling less aggressive (reduce "top speed"), e.g. when I hold button "v", "d", "8" to scroll down?
Please have a look at the sample script and post any ideas.

Thanks.
joeker

edit: attachment removed.


Last edited by joeker on Sun Apr 15, 2007 9:58 am; edited 1 time in total
Back to top
View user's profile Send private message
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Sat Apr 14, 2007 12:13 pm    Post subject: Reply with quote

Try changing this:

widget.keyRepeatInterval = 0.001;

to:

widget.keyRepeatInterval = 0.01;

It should slow things down a bit. If not, go even further.

EDIT: Alternatively, modify this function:

[code:1]
function accelerate(v)
{
if( v > 8 || v < -8 ) {
return v*4
} else if( v > 4 || v < -4 ) {
return v*2
}
return v;
}
[/code:1]

to:

[code:1]
function accelerate(v)
{
if( v > 4 || v < -4 ) {
return v*2
}
return v;
}
[/code:1]


Best.
--
Jonas
Back to top
View user's profile Send private message Send e-mail Visit poster's website
joeker
Junior Member


Joined: 31 Mar 2007
Posts: 58

PostPosted: Sun Apr 15, 2007 9:56 am    Post subject: Reply with quote

that did the trick!

thank you.
joeker

p.s. complete script-set is attached if anyone's interested.

features:
tab-navigation
history back/forward
zoom in/out, toggle fullscreen
scrolling
open link
...



firefox_15_04_07.zip
 Description:

Download
 Filename:  firefox_15_04_07.zip
 Filesize:  9.7 KB
 Downloaded:  1072 Time(s)

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group