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

Scaling DOM objects does not work in FireFox #1

Closed
IQAndreas opened this issue Jul 16, 2013 · 3 comments
Closed

Scaling DOM objects does not work in FireFox #1

IQAndreas opened this issue Jul 16, 2013 · 3 comments
Assignees

Comments

@IQAndreas
Copy link

Using the latest commit, a0f1fb9, the "DOM Scaling" examples do not work at all in FireFox (video).

The "Canvas" version works just fine in FireFox, and both examples work flawlessly in Chrome.

Running:

  • 32-bit Ubuntu 13.04
  • FireFox 22.0 (I can't find a more detailed "version" number like Chrome usually displays. Perhaps that's just how compact FireFox version numbers are.)

Oddly enough, I'm not getting any errors in JavaScript errors or warnings show up in the FireBug Console. I'm too inexperienced in this filthily untyped language to fix the issue on my own, but let me know if there is any way I can assist the debugging process.

@senocular
Copy link
Owner

You will need to update

Picture.prototype.draw = function(){
    this.image.style.webkitTransform = this.transform.matrix.toString();
};

In the example code to use a non-webkit-specific transform (there may be other webkit-specific calls being made too, but that's one I know of offhand).

@senocular
Copy link
Owner

Also, I'm fairly certain the mouse position code is not cross-browser compatible (in fact might be webkit-specific as well)

@senocular
Copy link
Owner

I think webkit also has a different transformation origin than the other browsers, so that could require some additional finagling. I'll try to check in an update soon.

@ghost ghost assigned senocular Sep 4, 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