Skip to content

Commit

Permalink
Merge pull request #2 from ScottDowne/master
Browse files Browse the repository at this point in the history
left calculation for greedy track creation lol!
  • Loading branch information
secretrobotron committed Jun 6, 2011
2 parents 573a99a + 1ea4e15 commit d4a4428
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trackliner.js
Expand Up @@ -160,7 +160,8 @@
else {

if ( type && plugins[ type ]) {
that.createTrackEvent( type, {left: event.clientX/scale}, event, ui );
var clientRects = parent.getClientRects();
that.createTrackEvent( type, { left: (event.clientX - clientRects[0].left)/scale }, event, ui );
} //if

} //if
Expand Down

0 comments on commit d4a4428

Please sign in to comment.