Skip to content

Commit

Permalink
[se] Revert horizontal scroll with shift key
Browse files Browse the repository at this point in the history
  • Loading branch information
GoshaZotov authored and trofim24 committed Jan 28, 2025
1 parent e613f05 commit da193f2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cell/view/EventsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -2715,11 +2715,6 @@
}
}

if (event.shiftKey) {
deltaX = deltaY;
deltaY = 0;
}

//TODO!!! while only check direction. need refactor, and replace up code on checkMouseWhell function
let values = AscCommon.checkMouseWhell(event, {
isSupportBidirectional : false,
Expand All @@ -2734,6 +2729,11 @@
deltaY = 0;
}

if (event.shiftKey) {
deltaX = deltaY;
deltaY = 0;
}

if (this.smoothWheelCorrector && !wb.smoothScroll) {
deltaX = this.smoothWheelCorrector.get_DeltaX(deltaX);
deltaY = this.smoothWheelCorrector.get_DeltaY(deltaY);
Expand Down

0 comments on commit da193f2

Please sign in to comment.