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

isDrawingMode: true, path disappears on mouseup #31

Closed
PatrickWolleb opened this issue Oct 30, 2013 · 6 comments
Closed

isDrawingMode: true, path disappears on mouseup #31

PatrickWolleb opened this issue Oct 30, 2013 · 6 comments

Comments

@PatrickWolleb
Copy link

It seems createPath method of PencilBrush.class is not creating a valid path.

@PatrickWolleb
Copy link
Author

Issue was I had the canvas nested inside a section tag.

<section id="editor">
        <canvas id="c"></canvas>
 </section>

Changed to the below

 <section id="editor"></section>
 <canvas id="c"></canvas>

Any ideas?

@PatrickWolleb
Copy link
Author

Even stranger, setting the CSS background on the canvas element is what caused the issue! Un-nesting solved it because the CSS selector did not target the canvas tag anymore but real issue is CSS background.

Any ideas on why would be appreciated.

@kangax
Copy link
Member

kangax commented Oct 31, 2013

I don't really understand the issue here. Can you please make jsfiddle showing the problem.

@PatrickWolleb
Copy link
Author

Here you go
http://jsfiddle.net/2c495/3/

Observe:

  • removing background will fix it
  • Noticed when '#c' is used as css selector instead of 'canvas' it works

Thanks

@kangax
Copy link
Member

kangax commented Nov 1, 2013

1.2.0 is a very old version. Check if this happens with 1.3.x

@PatrickWolleb
Copy link
Author

Occurring with 1.3.x as well. Anyway, I close the issue.

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