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:
Paul Davis 2014-05-23 22:05:08 -04:00
parent 54a56cd3c6
commit 073df89c4d
10 changed files with 39 additions and 22 deletions

View file

@ -46,7 +46,7 @@ PolyLine::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) cons
bool
PolyLine::covers (Duple const & point) const
{
Duple p = canvas_to_item (point);
Duple p = window_to_item (point);
const Points::size_type npoints = _points.size();