Fix selection shadow not updating when grid moves

This commit is contained in:
Ryan Huffman 2014-12-02 12:17:10 -08:00
parent 9d9a7ead5b
commit 89b3a4d987

View file

@ -177,6 +177,8 @@ Grid = function(opts) {
color: gridColor, color: gridColor,
alpha: gridAlpha, alpha: gridAlpha,
}); });
that.emitUpdate();
} }
function cleanup() { function cleanup() {
@ -207,6 +209,7 @@ GridTool = function(opts) {
horizontalGrid.addListener(function(data) { horizontalGrid.addListener(function(data) {
webView.eventBridge.emitScriptEvent(JSON.stringify(data)); webView.eventBridge.emitScriptEvent(JSON.stringify(data));
selectionDisplay.updateHandles();
}); });
webView.eventBridge.webEventReceived.connect(function(data) { webView.eventBridge.webEventReceived.connect(function(data) {