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

When Page Refresh the drawing or the drawing line moveup for every refresh #10

Open
vishmanthisuresh111 opened this issue Jul 24, 2019 · 4 comments

Comments

@vishmanthisuresh111
Copy link

Hi @williammalone
I was reading your tutorial here and then was looking for the comments section but only found your github - http://www.williammalone.com/articles/create-html5-canvas-javascript-drawing-app/

First at All thanks for the Code Every things work fine Great Job
so the minor issue is when page is refresh the drawing line move-up (like 5mm height) can you guide me how to resolve this not to move-up the drawing line.

I would Appreciate if you could Help Us

Thanks & Regards
Suresh

@nw1024
Copy link

nw1024 commented Jul 24, 2019

Hi Suresh, I'm not William but I tried to reproduce your error and cannot. What operating system and browser are you using, and can you explain in detail how to reproduce the bug?

For example, with the GitHub content when viewing html5-canvas-drawing-app.html, a page refresh in Chrome simply resets the drawing completely, there are no lines left to move up or stay put.

@vishmanthisuresh111
Copy link
Author

Hi @nw1024
Am using the chrome Browser
your right according to the GitHub content when viewing html5-canvas-drawing-app.html
I have made changes that after refresh the page the drawing lines or images should be on the page that works fine.
but when we refresh the page it moveup like 1cm height from the original position.

So my question is the draw line or image should be in the same position even after the page refresh

@vishmanthisuresh111
Copy link
Author

vishmanthisuresh111 commented Jul 25, 2019

image

after refresh the page its moves 1cm height from its original position.

@nw1024
Copy link

nw1024 commented Jul 25, 2019

So you made some changes to the code to keep the lines after refresh? Can you make a fork with your changed code and link it, or maybe just paste the code here or a link to pastebin.com URL with the code that you changed?

Is your main goal to keep the lines as is when the page refreshes in the browser, rather than erase them?

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