Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

DrawPane zoom translated coordinates.

$
0
0
I am trying to convert the mouse-X coordinate on mouse-move after the drawpane is zoomed.

Point endPoint = new Point(event.getX()-canvas.getAbsoluteLeft(),event.getY()-canvas.getAbsoluteTop());

This only works when there is no zoom applied.

Smartgwt version is gwt-2.6.0
browser internet explorer 11.

Viewing all articles
Browse latest Browse all 4756

Trending Articles