mirror of
https://github.com/atom/atom.git
synced 2026-02-17 10:01:25 -05:00
Honor editor's scrollSensitivity parameter
This commit is contained in:
@@ -1486,7 +1486,7 @@ class TextEditorComponent {
|
||||
}
|
||||
|
||||
didMouseWheel (event) {
|
||||
const scrollSensitivity = this.props.mouseWheelScrollSensitivity || 0.8
|
||||
const scrollSensitivity = this.props.model.getScrollSensitivity() / 100
|
||||
|
||||
let {deltaX, deltaY} = event
|
||||
deltaX = deltaX * scrollSensitivity
|
||||
|
||||
Reference in New Issue
Block a user