Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEitanSomething <EitanSomething>2019-06-03 19:13:52 +0300
committerJacques Lucke <mail@jlucke.com>2019-06-03 19:17:24 +0300
commitcd90986bcb4e20a3e731a3e2d6340bb582b43f38 (patch)
treed04837793a94403400c53f2c9c4166953d8f204c /source/blender/editors/include/UI_view2d.h
parentc39a8657be6d1096154222b87358dde8a8054ff1 (diff)
UI: Prevent scrollbars from getting too small to grab
Differential Revision: https://developer.blender.org/D5001
Diffstat (limited to 'source/blender/editors/include/UI_view2d.h')
-rw-r--r--source/blender/editors/include/UI_view2d.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h
index 4f880a8d46f..bfdb52a4a5d 100644
--- a/source/blender/editors/include/UI_view2d.h
+++ b/source/blender/editors/include/UI_view2d.h
@@ -70,6 +70,8 @@ enum eView2D_CommonViewTypes {
/* scroller 'handles' hotspot radius for mouse */
#define V2D_SCROLLER_HANDLE_SIZE (0.6f * U.widget_unit)
+#define V2D_MIN_SCROLLER_SIZE (50.0 * UI_DPI_FAC)
+
/* ------ Define for UI_view2d_sync ----- */
/* means copy it from another v2d */