13
0
livetrax/libs/canvas
Mads Kiilerich 0b27d6e652
Fix proximity threshold for polyline
I'm not good with a mouse, so I found it hard to edit animation lines.
The mouse position has to be quite precise, with only a small threshold.

Looking at the code, AutomationLine sets the threshold for the PolyLine
to 4.0 . That seems to be a distance, and better for me than what I
experience.

The actual code in PolyLine is however comparing it directly to the
squared distance, making it more sensitive than expected.

Fixed by computing the squared threshold - also including the line
width.
2022-10-17 00:09:25 +02:00
..
benchmark
canvas canvas: make "debug_render" into a per-canvas member variable 2022-09-03 16:46:41 -06:00
doc
MSVCcanvas
test
arc.cc canvas: tweaks to Arc canvas item 2022-08-27 12:54:43 -06:00
arrow.cc
box.cc canvas: improve debug trace output during Box::reposition_children() 2022-09-03 16:46:41 -06:00
build-and-run-benchmark.sh
build-and-run-manual-test.sh
build-and-run-tests.sh
canvas.cc canvas: make "debug_render" into a per-canvas member variable 2022-09-03 16:46:41 -06:00
circle.cc
container.cc
ct
curve.cc
debug.cc
fill.cc
flag.cc
framed_curve.cc
grid.cc
image.cc
item.cc canvas: do not strip layout-sensitivity when adding items to a container 2022-09-03 16:46:41 -06:00
line_set.cc
line.cc
lookup_table.cc
meter.cc canvas: NOOP - meter, whitespace adjustment 2022-09-03 16:46:41 -06:00
note.cc use selected (outline) color for MIDI note velocity bar (thanks, cooltehno, for the idea) 2022-08-31 13:53:43 -06:00
Notes
outline.cc
pixbuf.cc
poly_item.cc
poly_line.cc Fix proximity threshold for polyline 2022-10-17 00:09:25 +02:00
polygon.cc
rectangle.cc
root_group.cc
ruler.cc
run-manual-test.sh
run-tests.sh
scroll_group.cc
stateful_image.cc
step_button.cc
table.cc
text.cc
tracking_text.cc
types.cc
utils.cc
widget.cc
wscript
xfade_curve.cc