summaryrefslogtreecommitdiff
path: root/src/lib/elm_config.h
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-02-18 12:22:00 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-02-18 12:53:52 -0500
commit920bb29baa80e7c82b54838798514e6f26be6683 (patch)
tree318f1ae50d8e5356c4dd17e7e14acb5f05991124 /src/lib/elm_config.h
parent4b0612b884b4d4ee2328f57c6b366a1d60a4280f (diff)
downloadelementary-920bb29baa80e7c82b54838798514e6f26be6683.tar.gz
scrolling: add option to disable scroll animations
when I scroll on a computer, I want my app to respond immediately. I don't want to wait for it to finish scrolling and I don't want to have to guess where the scroll will end. ref 2ac2628612060114cf6e5205e5331044221178c6 @feature
Diffstat (limited to 'src/lib/elm_config.h')
-rw-r--r--src/lib/elm_config.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/lib/elm_config.h b/src/lib/elm_config.h
index 8f724156e..d122293d4 100644
--- a/src/lib/elm_config.h
+++ b/src/lib/elm_config.h
@@ -620,6 +620,33 @@ EAPI Eina_Bool elm_config_scroll_thumbscroll_smooth_start_get(void);
EAPI void elm_config_scroll_thumbscroll_smooth_start_set(Eina_Bool enable);
/**
+ * Get the value of this option
+ *
+ * @return State of this option
+ *
+ * @see elm_config_scroll_animation_disable_set()
+ *
+ * @since 1.18
+ * @ingroup Scrolling
+ */
+EAPI Eina_Bool elm_config_scroll_animation_disable_get(void);
+
+/**
+ * Set the value for this option
+ *
+ * This option disables timed animations during scrolling and forces scroll actions
+ * to be performed immediately.
+ *
+ * @param disable The state of this option
+ *
+ * @see elm_config_scroll_animation_disable_get()
+ *
+ * @since 1.18
+ * @ingroup Scrolling
+ */
+EAPI void elm_config_scroll_animation_disable_set(Eina_Bool enable);
+
+/**
* Get the amount of smoothing to apply to scrolling
*
* @return the amount of smoothing to apply from 0.0 to 1.0