mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
use window-based coordinates when picking current item so that we get per-item (per-scroll-group,really) computation of position and coverage.
This commit is contained in:
parent
54a56cd3c6
commit
073df89c4d
10 changed files with 39 additions and 22 deletions
|
|
@ -159,7 +159,7 @@ Line::set_y1 (Coord y1)
|
|||
bool
|
||||
Line::covers (Duple const & point) const
|
||||
{
|
||||
const Duple p = canvas_to_item (point);
|
||||
const Duple p = window_to_item (point);
|
||||
static const Distance threshold = 2.0;
|
||||
|
||||
/* this quick check works for vertical and horizontal lines, which are
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue