Dependent gliders: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
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> |