You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by kp...@apache.org on 2013/10/11 00:33:31 UTC

svn commit: r1531138 - /tomcat/trunk/webapps/examples/websocket/drawboard.xhtml

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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org