Timeline: avoid unnecessary cornering at target work package

pull/5245/head
Roman Roelofsen 8 years ago
parent df026f0c49
commit 2f6e5e5788
  1. 2
      frontend/app/components/wp-table/timeline/wp-timeline-global.directive.ts

@ -181,7 +181,7 @@ export class WpTimelineGlobalService {
const directionY = idxFrom < idxTo ? 1 : -1;
let lastX = startCell.getRightmostPosition();
let targetX = endCell.getLeftmostPosition();
const directionX = targetX > lastX ? 1 : -1;
const directionX = targetX >= lastX ? 1 : -1;
// start
if (!startCell) {

Loading…
Cancel
Save