Increase hit tolerance to help selecting small items.

This commit is contained in:
Joachim Bauch 2021-12-16 16:30:40 +01:00
parent 0583fa41fe
commit 4369e54f5a
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02

View file

@ -924,6 +924,7 @@ var PageAnnotator = function(annotator, pagenum, container, page) {
this.canvas.style.bottom = 0;
this.scope = new paper.PaperScope();
this.scope.setup(this.canvas);
this.scope.project.options.hitTolerance = 5;
if (page) {
this.setPage(page, container);
}