polygon-edit: fix click detection
polygon-edit: trivial refactoring (Polygon.list -> Polygon.dots)