I’m trying to make the graph zoom according the mouse cursor, by override the mouse wheel behavior of trackballControls.js. What happens:
- It works partly and the graph zooms but not directly to the cursor.
- Right side zooms faster the the left, it seems like camera vector is not going straight but diagonal.
What can be the reasons for that? I copied only the wheel code part codepen and it works without those problems…
codepen which shows the problem:
A recording which shows the problem is attached!
thanks!
2020-10-01 22-57-58.mkv (1.1 MB)