I am tring to create a simple paint example with Zoon(rust wasm frontend). And in my example, i want to get canvas coordinate. I tried screen_x(which it was wrong), mouse_x, x methods but all of them was not fit my use case. And i found an example with pure rust wasm example here. In this example, it uses offset_x and offset_y for drawing a line with mouse moves but i could not find that method on events::MouseDown
I am tring to create a simple paint example with Zoon(rust wasm frontend). And in my example, i want to get canvas coordinate. I tried screen_x(which it was wrong), mouse_x, x methods but all of them was not fit my use case. And i found an example with pure rust wasm example here. In this example, it uses offset_x and offset_y for drawing a line with mouse moves but i could not find that method on events::MouseDown