mlandis / phylowood

Browser-based Interactive Phylogeographic Animations
http://mlandis.github.com/phylowood/
20 stars 9 forks source link

Dragging slider directly results in display issues #14

Closed trvrb closed 12 years ago

trvrb commented 12 years ago

When dragging the phyloSlider line, rather than the handle, tracer lines in the continuous model display incorrectly and causes no updates to appear in discrete model.

mlandis commented 12 years ago

Fixed.

phyloSlider was returning continuous-valued clock ticks (through d3.scale.linear()), but these values are used as array indices. Also updated the phyloSlider drag() calls to use the new updateSlider code. Resolved with Math.round and checking for boundary conditions.