// Pick element under the mouse
Point2D controlPos = me.controlPosition;
Point2D diagramPos = util.controlToCanvas(controlPos, null);
- PickRequest req = new PickRequest(diagramPos);
+ PickRequest req = new PickRequest(diagramPos).context(getContext());
req.pickSorter = pickSorter;
//req.pickSorter = PickRequest.PickSorter.CONNECTIONS_LAST;
ArrayList<IElement> result = new ArrayList<IElement>();