提交 17959a75 编写于 作者: A Alex Dima

Fixes #46301: Remove massaging of `deltaX` in mousewheel events on OSX

上级 830ec658
......@@ -336,16 +336,6 @@ export abstract class AbstractScrollableElement extends Widget {
deltaY = 0;
}
if (Platform.isMacintosh) {
// Give preference to vertical scrolling
if (deltaY && Math.abs(deltaX) < 0.2) {
deltaX = 0;
}
if (Math.abs(deltaY) > Math.abs(deltaX) * 0.5) {
deltaX = 0;
}
}
const futureScrollPosition = this._scrollable.getFutureScrollPosition();
let desiredScrollPosition: INewScrollPosition = {};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册