moveTo handler
HTML
<link rel="stylesheet" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css">
<script src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
<div id="jxgbox" class="jxgbox" style="width:500px; height:500px;"></div>
JavaScript
var board = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-10, 10, 10, -10], showNavigation: false, axis: true,grid:true}),
over = function () {
if (!this.visProp.fixed) {
board.containerObj.style.cursor = 'pointer';
}
},
out = function () {
if (!this.visProp.fixed) {
board.containerObj.style.cursor = 'default';
}
};
var p = board.create('point', [2, 2]);
var q = board.create('point', [-2, -2], {fixed: true});
// add the event handler to every point manually
board.on('over', over);
board.on('out', out);