mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
Potential fix for #888. Stops checking whether we are mid workspace drag since we do not always get mosue up events when blockly is in an iframe. (#899)
This commit is contained in:
@@ -683,6 +683,15 @@ Blockly.WorkspaceSvg.prototype.setupDragSurface = function() {
|
||||
return;
|
||||
}
|
||||
|
||||
// This can happen if the user starts a drag, mouses up outside of the
|
||||
// document where the mouseup listener is registered (e.g. outside of an
|
||||
// iframe) and then moves the mouse back in the workspace. On mobile and ff,
|
||||
// we get the mouseup outside the frame. On chrome and safari desktop we do
|
||||
// not.
|
||||
if (this.isDragSurfaceActive_) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.isDragSurfaceActive_ = true;
|
||||
|
||||
// Figure out where we want to put the canvas back. The order
|
||||
|
||||
Reference in New Issue
Block a user