javascript - Prevent graph from panning -


disable graph zooming can done settings - can't find no way turn off panning of graph. tried prevent dragging binding clickstage event, can't figure out how prevent default events getting called. event.preventdefault() or event.stopprogagation() job.

thanks this , this sigma.js issues found workaround permits me maintain graph in visual area - still interested totally prevent graph panning.

i manage bounce graph original location when panning. when coordinatesupdated event gets triggered camera use camera.goto() function move graph 0/0.

s.cameras[0].bind('coordinatesupdated', function(e) {    if (s.cameras[0].x < 0) s.cameras[0].x = 0;    if (s.cameras[0].y < 0) s.cameras[0].y = 0;    if (s.cameras[0].x > 0) s.cameras[0].x = 0;    if (s.cameras[0].y > 0) s.cameras[0].y = 0; });