jacomyal/sigma.js — pull request #112 by andykitchen (2013-06-19 11:52:25+00:00)
Title: fisheye: fix visual glitches during zoom and pan

This is a quick and dirty hack to prevent the fisheye plugin triggering updates
while the user is panning and zooming. It fixes two visual glitches:

1. When the user is panning, mouse move events cause the edges
to be drawn all the time, when only nodes should be drawn.

2. For about a second after the user has stopped zooming,
moving the mouse causes the edges to flicker. This is because
interpolate events are redrawing the graph with no edges
and the fisheye plugin is redrawing the graph with edges.

This patch is a pretty ugly hack. We need to rethink the internal
API so that plugins have a more cohesive way of trigging
redraws. Also maybe a way to figure out if the use is currently
panning or zooming.

Perhaps with a more complete plugin api, the Pan and Zoom feature
could also become a plugin?

Kind Regards

AK