From 57af9eb3bd70c316dd8cc172c2474b662ffc5b1c Mon Sep 17 00:00:00 2001 From: Robin Tissot <tissotrobin@gmail.com> Date: Fri, 14 Aug 2020 11:41:10 +0200 Subject: [PATCH] Fix to overlaping regions selection cycling. --- app/escriptorium/static/js/baseline.editor.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/escriptorium/static/js/baseline.editor.js b/app/escriptorium/static/js/baseline.editor.js index 56b36b8a..0084fe71 100644 --- a/app/escriptorium/static/js/baseline.editor.js +++ b/app/escriptorium/static/js/baseline.editor.js @@ -1182,8 +1182,10 @@ class Segmenter { for (let i=0; i<this.regions.length; i++) { if (this.selecting.selected && this.regions[i] != this.selecting) { let hit = this.regions[i].polygonPath.hitTest(event.point); - if (hit) this.selecting = this.regions[i]; - break; + if (hit) { + this.selecting = this.regions[i]; + break; + } } } } -- GitLab