B4XCanvas is a cross platform type and It is the same API as in B4A and B4i, which are based on floats.
I don't think that there is any case in B4J where it will matter that the floats are cast to double.
I am using B4XRect to define bounding boxes.. So it's a case of casting a double to a float. Isn't it possible there could be edge cases where the B4XView touch action coordinates would be inside the bounding box if a double was used and outside when using a float?
I am not using the MouseMoved event. I am using the TOUCH_ACTION_UP, TOUCH_ACTION_DOWN and TOUCH_ACTION_MOVE events for cross platform compatability hence my question.
.