From 44fa4d7f291b6fd6a014db7e1f1507e146fb19d1 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Thu, 29 Nov 2007 02:05:42 +0000 Subject: [PATCH] make the alt-drag profile symmetric --- src/gradient-drag.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp index 3f51b0824..11cc3cf3b 100644 --- a/src/gradient-drag.cpp +++ b/src/gradient-drag.cpp @@ -836,7 +836,7 @@ gr_knot_moved_midpoint_handler(SPKnot */*knot*/, NR::Point const *ppointer, guin NR::Point this_move = displacement; if (state & GDK_MOD1_MASK) { // FIXME: unify all these profiles (here, in nodepath, in tweak) in one place - double alpha = 1.5; + double alpha = 1.0; if (NR::L2(drg->point - dragger->point) + NR::L2(drg->point - begin) - 1e-3 > NR::L2(dragger->point - begin)) { // drg is on the end side from dragger double x = NR::L2(drg->point - dragger->point)/NR::L2(end - dragger->point); this_move = (0.5 * cos (M_PI * (pow(x, alpha))) + 0.5) * this_move; -- 2.30.2