Skip to content
Snippets Groups Projects
Commit 7be8df89 authored by Sébastien DA ROCHA's avatar Sébastien DA ROCHA :bicyclist:
Browse files

Merge branch 'redmine-issue/13710' into 'develop'

REDMINE_ISSUE-13710 | Améliorer l'outil de tracé linéaire sur mobile

See merge request !383
parents 3f40c51b 4111e9d1
No related branches found
No related tags found
2 merge requests!424version 3.1.0,!383REDMINE_ISSUE-13710 | Améliorer l'outil de tracé linéaire sur mobile
...@@ -125,7 +125,8 @@ const editionService = { ...@@ -125,7 +125,8 @@ const editionService = {
// On mobile stop drawing when selecting a drawn point // On mobile stop drawing when selecting a drawn point
if (isMobile) { if (isMobile) {
this.selectForUpdate.on('select', () => { this.selectForUpdate.on('select', () => {
if (this.draw.getActive() && this.draw.sketchCoords_.length > 2) { // Permet de stopper le dessin de ligne ou polygone sur mobile
if (this.draw.getActive() && (this.draw.sketchCoords_.length > 2 || this.draw.sketchCoords_[0].length > 3)) {
this.draw.finishDrawing(); this.draw.finishDrawing();
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment