### Eclipse Workspace Patch 1.0
#P org.sophie2.base.commons
|
|
|
32 | 32 | this.initCompX = initCompX; |
33 | 33 | this.initCompY = initCompY; |
34 | 34 | |
35 | | Point componentPoint = e.getComponent().getLocationOnScreen(); |
| 35 | Point componentPoint = e.getComponent().getLocation(); |
36 | 36 | |
37 | 37 | if(!isInTestMode()) { |
38 | 38 | this.initMouseX = componentPoint.x + e.getX(); |
… |
… |
|
61 | 61 | |
62 | 62 | public final void eventDispatched(AWTEvent event) { |
63 | 63 | MouseEvent m = (MouseEvent)event; |
64 | | Point componentPoint = m.getComponent().getLocationOnScreen(); |
| 64 | Point componentPoint = m.getComponent().getLocation(); |
65 | 65 | |
66 | 66 | m.consume(); |
67 | 67 | int newX = this.initCompX + componentPoint.x + m.getX() - this.initMouseX; |