Author: kpreisser
Date: Thu Oct 10 22:33:31 2013
New Revision: 1531138
URL: http://svn.apache.org/r1531138
Log:
Follow-Up to r1531130:
Also set the correct mouse coordinates when canceling the drawing.
Modified:
tomcat/trunk/webapps/examples/websocket/drawboard.xhtml
Modified: tomcat/trunk/webapps/examples/websocket/drawboard.xhtml
URL:
http://svn.apache.org/viewvc/tomcat/trunk/webapps/examples/websocket/drawboard.xhtml?rev=1531138&r1=1531137&r2=1531138&view=diff
==============================================================================
--- tomcat/trunk/webapps/examples/websocket/drawboard.xhtml (original)
+++ tomcat/trunk/webapps/examples/websocket/drawboard.xhtml Thu Oct 10 22:33:31
2013
@@ -537,6 +537,9 @@
mouseDown = false;
currentPreviewPath = null;
+ currentMouseX = e.pageX - canvasDisplay.offsetLeft;
+ currentMouseY = e.pageY - canvasDisplay.offsetTop;
+
refreshDisplayCanvas();
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]