Skip to content

Commit

Permalink
Merge pull request #335 from virtual-world-framework/branch/find-fix
Browse files Browse the repository at this point in the history
Fixes an issue with find not returning the correct node
  • Loading branch information
scottnc27603 committed Sep 3, 2014
2 parents 36ceba7 + 52c50dc commit 9f9d443
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 7 deletions.
4 changes: 3 additions & 1 deletion support/client/lib/vwf/view/kineticjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ define( [ "module", "vwf/view", "jquery", "vwf/utility", "vwf/utility/color" ],
"metaKey": e.evt.metaKey
} ];

var stageId = undefined;
if ( node && node.stage ) {
stageId = node.stage.getId();
returnData.eventData.stage = [ node.stage.x, node.stage.y ];
}

if ( propagate ) {

var pointerPickID = e.targetNode ? e.targetNode.getId() : stage.getId();
var pointerPickID = e.targetNode ? e.targetNode.getId() : stageId;

returnData.eventNodeData = { "": [ {
pickID: pointerPickID,
Expand Down
52 changes: 46 additions & 6 deletions support/proxy/vwf.example.com/kinetic/drawing.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions support/proxy/vwf.example.com/kinetic/drawing.vwf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ events:
drawingObjectCreated:
textCreated:
imageCreated:
findChild:
scripts:
- source: "http://vwf.example.com/kinetic/drawing.js"

0 comments on commit 9f9d443

Please sign in to comment.