berusch / simile-widgets-old

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

Timeline._Band.prototype.pixelOffsetToDate() has a sign error #432

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Using the Timeline._Band.prototype.pixelOffsetToDate

(it's used by Timeline._Band.prototype.scrollToCenter())

What is the expected output?

Correct date ( date corresponding to pixels - this._viewOffset)

What do you see instead?

date corresponding to pixels + this._viewOffset

Fix:

Timeline._Band.prototype.pixelOffsetToDate = function(pixels) {
   return this._ether.pixelOffsetToDate(pixels - this._viewOffset);
}; 

Version used is 2.3.0

Original issue reported on code.google.com by Julien.C...@gmail.com on 10 Mar 2011 at 1:29

GoogleCodeExporter commented 8 years ago

Original comment by ryan...@csail.mit.edu on 23 Jun 2011 at 9:37