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 canvas: change Item::bb_clean() to better named Item::set_bbox_clean() 2022-04-26 22:04:08 -06:00
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 canvas: change Item::bb_clean() to better named Item::set_bbox_clean() 2022-04-26 22:04:08 -06:00
ct
curve.cc Fix various typos in libs/canvas 2022-08-03 12:07:46 -06:00
debug.cc
fill.cc
flag.cc
framed_curve.cc Fix various typos in libs/canvas 2022-08-03 12:07:46 -06:00
grid.cc canvas: change Item::bb_clean() to better named Item::set_bbox_clean() 2022-04-26 22:04:08 -06:00
image.cc canvas: change Item::bb_clean() to better named Item::set_bbox_clean() 2022-04-26 22:04:08 -06:00
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 canvas: change Item::bb_clean() to better named Item::set_bbox_clean() 2022-04-26 22:04:08 -06:00
line.cc canvas: change Item::bb_clean() to better named Item::set_bbox_clean() 2022-04-26 22:04:08 -06:00
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 canvas: when an item has its bbox marked dirty, this should propagate to all parents 2022-04-26 22:04:08 -06:00
pixbuf.cc canvas: change Item::bb_clean() to better named Item::set_bbox_clean() 2022-04-26 22:04:08 -06:00
poly_item.cc canvas: change Item::bb_clean() to better named Item::set_bbox_clean() 2022-04-26 22:04:08 -06:00
poly_line.cc Fix proximity threshold for polyline 2022-10-17 00:09:25 +02:00
polygon.cc canvas: when an item has its bbox marked dirty, this should propagate to all parents 2022-04-26 22:04:08 -06:00
rectangle.cc canvas: change Item::bb_clean() to better named Item::set_bbox_clean() 2022-04-26 22:04:08 -06:00
root_group.cc Remove 18 month old debug messages 2022-02-01 22:01:41 +01:00
ruler.cc
run-manual-test.sh
run-tests.sh
scroll_group.cc Prevent rendering outside of canvas scroll groups 2022-07-06 20:50:03 +02:00
stateful_image.cc
step_button.cc canvas: change Item::bb_clean() to better named Item::set_bbox_clean() 2022-04-26 22:04:08 -06:00
table.cc Fix various typos in libs/canvas 2022-08-03 12:07:46 -06:00
text.cc canvas: change Item::bb_clean() to better named Item::set_bbox_clean() 2022-04-26 22:04:08 -06:00
tracking_text.cc
types.cc
utils.cc
widget.cc canvas: change Item::bb_clean() to better named Item::set_bbox_clean() 2022-04-26 22:04:08 -06:00
wscript wscript: consistently have at most one empty separator line 2022-04-09 12:16:40 +02:00
xfade_curve.cc canvas: change Item::bb_clean() to better named Item::set_bbox_clean() 2022-04-26 22:04:08 -06:00