bug fixed

This commit is contained in:
Luis Fernando Molina committed 2020-03-19 16:29:39 +01:00
1 parent 18333a1a4e
commit 82f6e08467
2 files changed
+11 -2

No files matched your search

+6
View File
@@ -616,6 +616,12 @@ function newCanvas () {
containerDragStarted = true
floatingObjectDragStarted = true
containerBeingDragged.eventHandler.raiseEvent('onDragStarted', point)
if (event.candelDragging === true) {
containerBeingDragged = undefined
containerDragStarted = false
floatingObjectDragStarted = false
}
return
}
+5 -2
View File
@@ -140,10 +140,13 @@ function newFloatingSpace () {
function onDragStarted (event) {
if (thisObject.inMapMode === false) {
if (event.buttons !== 2) { return }
event.candelDragging = true
enterMapMode()
} else {
if (event.buttons !== 1) { return }
if (event.buttons !== 1) {
event.candelDragging = true
return
}
let mousePosition = {
x: event.x,