GNOME Bugzilla – Bug 589817
cancel accidental movement when double-clicking on a curve
Last modified: 2009-08-12 15:15:14 UTC
When double-clicking a keyframe curve (to add a keyframe) or double-clicking an existing keyframe, usually, the keyframe will be displaced slightly (as a result of the mechanical nature of a human hand clicking on a mouse and displacing it slightly in the process). I would like this movement to be cancelled out. Only move when doing a drag or when resulting from a manual value change (bug #589815).
Ideed, adding a keyframe by double-clicking the curve breaks the curve
This should be easy to fix: When double-clicking to add a curve: * Take the current x position of the mouse (i.e. the time position) * Figure out what value the curve is at for that time position * Add a new keyframe with those calculated time-position/value Basically... don't take into account the y position but calculate it.
commit ed0173e51511642f0d228856e1186e6a6d172114 Author: Brandon Lewis <brandon_lewis@berkeley.edu> Date: Mon Aug 3 16:52:53 2009 -0700 track.py, curve.py: when creating keyframes, calculate value so that it lies on the existing curve. fixes bug 589815 note: used incorrect bug number in commit message, unsure what to do about that now that it's been committed to master.
It even passes the wacom stylus test. Bulletproof.
i've just made a quick test of the updated PPA version (thanks for that BTW) : I don't know if it's related but it's way harder now to delete a keyframe by clicking again on it It tends to add another keyframe
concerning my above comment, i've created Bug 591571