Skip to content

Commit

Permalink
WV-1461 Mouse zooming fixed on timeline for firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
Taylor Gunnoe committed Sep 1, 2015
1 parent e468bde commit 0f337f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/js/date/wv.date.timeline.zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ wv.date.timeline.zoom = wv.date.timeline.zoom || function(models, config, ui) {
var mouseOffset, mousePos;

if(e){
var relX = e.offsetX ||
(e.clientX - $('#timeline-footer').offset().left);
var relX = e.clientX - $('#timeline-footer').offset().left;
mousePos = tl.x.invert(relX);
mouseOffset = (tl.width-tl.margin.left-tl.margin.right)/2 - relX;
console.log(relX);
}

var d1 = tl.data.start(),
Expand Down

0 comments on commit 0f337f9

Please sign in to comment.