Merge pull request #598 from SVG-Edit/issues/386

#386 Polyline/path canceled by a right-click crashes the app state
This commit is contained in:
JFH
2021-07-21 10:07:30 +02:00
committed by GitHub

View File

@@ -966,6 +966,9 @@ export const mouseDownEvent = function (evt) {
evt.preventDefault();
if (rightClick) {
if(eventContext_.getCurrentMode() === 'path'){
return;
}
eventContext_.setCurrentMode('select');
eventContext_.setLastClickPoint(pt);
}