summaryrefslogtreecommitdiff
path: root/src/prefs.c
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2023-12-09 21:58:40 +0100
committerRodrigo Arias Mallo <rodrigo.arias@bsc.es>2023-12-20 01:06:54 +0100
commit78ad5bfe9644d1217f9d9ad0bf2fcdc388551113 (patch)
tree3e965a702cdfaa1136bd6550d6c88dd61e8a1f94 /src/prefs.c
parent58a950376b3c09098da3b286bb71b7b6eb4777d2 (diff)
Add scroll_step option
When using the mouse wheel to scroll a page, the default scroll step was causing a very slow scrolling speed. The new option "scroll_step" allows the user to define how many pixels the page is moved in every step of the mouse wheel. The default is increased to 100 pixels per step.
Diffstat (limited to 'src/prefs.c')
-rw-r--r--src/prefs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/prefs.c b/src/prefs.c
index 67816acb..065feb70 100644
--- a/src/prefs.c
+++ b/src/prefs.c
@@ -81,6 +81,7 @@ void a_Prefs_init(void)
prefs.panel_size = P_medium;
prefs.parse_embedded_css=TRUE;
prefs.save_dir = dStrdup(PREFS_SAVE_DIR);
+ prefs.scroll_step = 100;
prefs.search_urls = dList_new(16);
dList_append(prefs.search_urls, dStrdup(PREFS_SEARCH_URL));
prefs.search_url_idx = 0;