#386 Polyline/path canceled by a right-click crashes the app state

master
agriyadev5 2021-07-21 11:53:11 +05:30
parent feb6210c88
commit 2bff2a3b80
1 changed files with 3 additions and 0 deletions

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);
}