Difference between revisions of "Dependent gliders"
From JSXGraph Wiki
Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||
Line 9: | Line 9: | ||
brd.addHook(function() { | brd.addHook(function() { | ||
if (brd.mouse.obj==A) { | if (brd.mouse.obj==A) { | ||
− | B.position = A.position - 0. | + | B.position = A.position - 0.3; |
B.prepareUpdate().update(true).updateRenderer(); | B.prepareUpdate().update(true).updateRenderer(); | ||
} | } | ||
− | }, ' | + | }, 'update'); |
</jsxgraph> | </jsxgraph> |