Post
Topic
Board Trading Discussion
Re: Real Time Charting, Order Book, and Time & Sales
by
christop
on 17/04/2013, 19:44:13 UTC
Clark,

The vertical wheel scrolling to zoom in and out on the chart is backwards in Firefox. Chrome and (ew) IE zoom in while scrolling up, but Firefox zooms out while scrolling up. This is because Firefox treats wheel up as a negative amount in the "originalEvent.detail" variable, while other browsers treat wheel up as a positive amount in the "originalEvent.wheelDelta" variable.

The DOMMouseScroll function in your JavaScript sets originalEvent.wheelData to originalEvent.detail multiplied by 60 on Firefox, but it should actually multiply it by negative 60.

Other than that, your chart looks nice and works pretty well.