Closed PhatNguyen213 closed 3 years ago
The selection box is comprised of top, left, width and height. Based on them you should be able to calculate the starting click coordinates (i.e, left - width if your element is on the right side of the horizontal plane).
@PhatNguyen213 going to close this per @moises-marquez's comment as that should suffice for your needs.
Currently the
onSelectionChange
only receives one parameter which is the selection box.However while selecting I need to do some calculations based on the
clientX
andclientY
of the starting click. The starting click may not always be the top left as you can drag from bottom to top, for example.Is there any ways I can get this information?