From 6af985dc6d2c848a899bfea4f82540e8db181988 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 30 Mar 2023 21:08:00 +0200 Subject: GraphUI Shape: DragZoom: Allow resize_sxy_min down to 1/2%, need to find a good way to auto-deteminate this one (dpi, ..) Type animation UISceneDemo03 requires this to resize a single glyph, i.e. 0.03f was too big. 1% might be OK, but then .. maybe not. In general, a dpi autodetermination of a minimal scale/size might be OK, assuming user sits in front of a screen and not having a multi-screen circus arena setup ;-) --- src/graphui/classes/com/jogamp/graph/ui/gl/Shape.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/graphui/classes/com') diff --git a/src/graphui/classes/com/jogamp/graph/ui/gl/Shape.java b/src/graphui/classes/com/jogamp/graph/ui/gl/Shape.java index 2eecd0862..7d6f139ba 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/gl/Shape.java +++ b/src/graphui/classes/com/jogamp/graph/ui/gl/Shape.java @@ -969,7 +969,7 @@ public abstract class Shape { private final int[] winDraggedLast = { 0, 0 }; // b/c its absolute window pos private boolean inDrag = false; private int inResize = 0; // 1 br, 2 bl - private static final float resize_sxy_min = 0.03f; // TODO: Maybe customizable? + private static final float resize_sxy_min = 1f/200f; // 1/2% - TODO: Maybe customizable? private static final float resize_section = 1f/5f; // resize action in a corner /** -- cgit v1.2.3