aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphui/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-03-30 21:08:00 +0200
committerSven Gothel <[email protected]>2023-03-30 21:08:00 +0200
commit6af985dc6d2c848a899bfea4f82540e8db181988 (patch)
tree910d9ceb258339e77e6ee3278ef376bf63a1c186 /src/graphui/classes
parent4f2e451d9f6d8edadc1dc392d3831d3b25675693 (diff)
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 ;-)
Diffstat (limited to 'src/graphui/classes')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/gl/Shape.java2
1 files changed, 1 insertions, 1 deletions
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
/**