Skip to content

Commit

Permalink
wip: max scroll delta
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredkhan committed Nov 29, 2024
1 parent 150a2e9 commit 3ef58d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OZprivate/rawJS/OZTreeModule/src/interactor/mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ class MouseInteractor {
// temp_sensitivity = Math.pow(temp_sensitivity,((timeNow - this.timeLastScroll)/40))
// }
// this.timeLastScroll= timeNow;
let temp_sensitivity = Math.pow(config.sensitivity, Math.abs(delta) / 300)
const MAX_SCROLL_DELTA = 70;
let temp_sensitivity = Math.pow(config.sensitivity, Math.min(Math.abs(delta), MAX_SCROLL_DELTA) / 300)

set_mouse_position(this, event);

Expand Down

0 comments on commit 3ef58d9

Please sign in to comment.