diff --git a/cell/view/EventsController.js b/cell/view/EventsController.js index 9b4dbf2b8f..42f1eb6d2e 100644 --- a/cell/view/EventsController.js +++ b/cell/view/EventsController.js @@ -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, @@ -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);