# WebSDKuicontrol and WebCanvas refresh

**URL:** <https://forum.xojo.com/t/websdkuicontrol-and-webcanvas-refresh/75620>\
**Category:** Web\
**Created:** [May 4, 2023, 7:35am UTC](https://forum.xojo.com/t/websdkuicontrol-and-webcanvas-refresh/75620 "2023-05-04T07:35:42Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![oscar\_morotti](https://forum.xojo.com/letter_avatar_proxy/v4/letter/o/a4c791/32.png) [@oscar\_morotti](https://forum.xojo.com/u/oscar_morotti)\
**Post date:** [May 4, 2023, 7:35am UTC](https://forum.xojo.com/t/websdkuicontrol-and-webcanvas-refresh/75620/1 "2023-05-04T07:35:42Z")

</div>

I try to update webcanvas in realtime by a mousemove event.  
With help of this example [How to detect mouse-down in web container - #12 by Ricardo\_Cruz](https://forum.xojo.com/t/how-to-detect-mouse-down-in-web-container/75149/12) (@Ricardo_Cruz for president) I have the position of the mouse over the webcanvas, but when I try to use the coordinates to draw a line I have a strange behavior when refreshing the webcanvas: sometimes a line appears, most of the time nothing happens.

Here a link to my project  
[https://www.morotti.net/scambio/DrawingSurface.xojo\_binary\_project.zip](https://www.morotti.net/scambio/DrawingSurface.xojo_binary_project.zip)

Could someone help me figure out what I’m doing wrong?

Thank you,  
Oscar

---

_[View the full topic](https://forum.xojo.com/t/websdkuicontrol-and-webcanvas-refresh/75620)._
