Commit 925d679
Update ViewHelper.js (#26067)
* Update ViewHelper.js
I tried to embed the editor's ViewHelper and the mouse events did not translate properly.
Instead of using a complex code to calc the mouse.x and mouse.y, i did use event.offsetX and event.offsetY
This solved my problem and fixed any embedding issues.
* Update ViewHelper.js
Y axis should be inversed.
* Update ViewHelper.js
Reverting back to the original code with one fix. rect.width should be rect.right
* Update ViewHelper.js
* Update ViewHelper.js
---------
Co-authored-by: mrdoob <[email protected]>
Co-authored-by: Michael Herzog <[email protected]>1 parent b980375 commit 925d679
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
0 commit comments