Skip to main content

Timeline for Canvas Pad Signature on VF page..?

Current License: CC BY-SA 3.0

10 events
when toggle format what by license comment
Sep 18, 2014 at 4:45 history bounty awarded miku
Sep 15, 2014 at 7:22 vote accept miku
Sep 14, 2014 at 11:21 vote accept miku
Sep 15, 2014 at 7:22
Sep 13, 2014 at 16:17 comment added 0ff Hey there, I cannot reproduce this, can you please try to reproduce this on my page? dev-sep.force.com/testCanvas If the issue is not happening there, please make sure you replaced both variables twice, once in start and once in draw. Also please share a link to your page so that we can test it. Thank you!
Sep 13, 2014 at 7:50 comment added miku Hey Still there is one issue..My mouse is not able to record it properly..when i am trying to it..Mouse is doing signature above as it should..For eg if i try to do it below of the page..it is doing top of the canvas pad means curser movement is not not right..???Can you think what could be the issue..I have also added a image..
Sep 12, 2014 at 21:25 comment added 0ff Okay now that's the clue I needed! See you are referencing "absolute" X and Y coordinates, they change if you scroll. Change your code to this (twice!) and it works fine! currX = event.clientX + document.body.scrollLeft + document.documentElement.scrollLeft - canvas.offsetLeft; currY = event.clientY + document.body.scrollTop + document.documentElement.scrollTop - canvas.offsetTop; This includes scroll offset and thus makes drawing work on scrolled pages. I also updated the page above so you can test.
Sep 12, 2014 at 11:04 comment added miku Can you just add some input fields above so the scroll becomes visible on the right...When the page becomes big....then try to use canvas pad to sign..May be some pixles are changing...then i am unable to sign....??Its been 10 days i am stuck on this..Not able to find whats wrong..:(
Sep 12, 2014 at 10:33 comment added 0ff Hey miku, I think we should stay here for discussing this, as this would allow others to follow up with the solution later. Could you please post a change you made to break it? I'd then go ahead, do the same change and verify what broke.
Sep 12, 2014 at 4:53 comment added miku Yes it is working fine on individual page..but when i add some fields at the top from any of the object.,.Then i am unable to draw anything on canvas pad..I am unable to find what is happening when i just add the fields at the top with some HTML styling....Can we chat via something..?
Sep 12, 2014 at 0:03 history answered 0ff CC BY-SA 3.0