Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltips not showing on Firefox 19.0.2 #1

Closed
uBaze opened this issue Mar 25, 2013 · 2 comments
Closed

Tooltips not showing on Firefox 19.0.2 #1

uBaze opened this issue Mar 25, 2013 · 2 comments

Comments

@uBaze
Copy link

uBaze commented Mar 25, 2013

Hi,

First of all, thank you for your excellent work on Chart.js. You did exactly the additions I needed.
I have a rendering problem with Firefox (it works perfectly on the latest Chrome and IE 9), the tooltips do not appear at all. And sometimes, I get the following error:

TypeError: Value not an object. (l. 262)
context.putImageData(chart.savedState,0,0);

Do you experienced a similar thing ?

Thank you.

Val

@uBaze
Copy link
Author

uBaze commented Mar 26, 2013

Ok, the error seems to be also in Chrome

Uncaught Error: TypeMismatchError: DOM Exception 17 chart.js:263
context.canvas.onmouseout

And seems to be generated when the chart is not loaded yet (animation in progress) and when the mouse moves over it.

By modifying the onmouseout function (l 261) so I did not seem to have any side effect, and this removes the errors:

context.canvas.onmouseout = function(e) {
  if (chart.savedState! = null) {
    context.putImageData (chart.savedState, 0,0);
  }
}

Hope it help.
But in Firefox still no tooltips :(

Val

Regaddi pushed a commit that referenced this issue Mar 26, 2013
@Regaddi
Copy link
Owner

Regaddi commented Mar 26, 2013

It was the using of e.x instead of e.clientX and e.y instead of e.clientY on the mouse movement event object.

Chrome supports e.x and e.y, Firefox doesn't and it seems clientX/clientY is the more standard way.

@Regaddi Regaddi closed this as completed Mar 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants