mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
feat: Add 'reason' field to move event (#6996)
* feat: Add 'reason' field to move event There are many types of move. This addition allows one to detect what the reason for each move is. * Clang formatting. And unsaved editor tabs. * Change reason string to array.
This commit is contained in:
@@ -71,7 +71,7 @@ function bumpObjectIntoBounds(
|
||||
const deltaX = newXPosition - objectMetrics.left;
|
||||
|
||||
if (deltaX || deltaY) {
|
||||
object.moveBy(deltaX, deltaY);
|
||||
object.moveBy(deltaX, deltaY, ['inbounds']);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user