diff --git a/app/static/js/utils.js b/app/static/js/utils.js index 2720f35..5114731 100644 --- a/app/static/js/utils.js +++ b/app/static/js/utils.js @@ -98,7 +98,7 @@ function isInside(config, annotation) { return true } if (annotation['in'] < config['out'] && annotation['out'] > config['in']) { - annotation['in'] = Math.min(annotation['in'], config['in']) + annotation['in'] = Math.max(annotation['in'], config['in']) annotation['out'] = Math.min(annotation['out'], config['out']) return true }