Fix mac infinite scroll bug when using standard mouse

This commit is contained in:
Oren Kedem committed 2021-06-16 11:36:20 +03:00
1 parent 94f40cd337
commit 32e8447daa
10 files changed
+11 -62

No files matched your search

@@ -175,7 +175,7 @@ function newRateScale() {
}
function onMouseWheel(event, autoScale) {
if (IS_MAC) {
if (IS_MAC && Math.abs(event.wheelDelta) < MAC_MOUSE_WHEEL_INFINITE_SCROLL_THRESHOLD) {
let sensitivity
if (event.delta < 0) {
if (event.shiftKey === true) {
@@ -251,7 +251,7 @@ function newTimeFrameScale() {
}
function onMouseWheel(event) {
if (IS_MAC) {
if (IS_MAC && Math.abs(event.wheelDelta) < MAC_MOUSE_WHEEL_INFINITE_SCROLL_THRESHOLD) {
let sensitivity
if (event.delta < 0) {
if (event.shiftKey === true) {
@@ -126,7 +126,7 @@ function newTimeScale() {
}
function onMouseWheel(event, autoScale) {
if (IS_MAC) {
if (IS_MAC && Math.abs(event.wheelDelta) < MAC_MOUSE_WHEEL_INFINITE_SCROLL_THRESHOLD) {
let sensitivity
if (event.delta < 0) {
if (event.shiftKey === true) {
@@ -206,7 +206,7 @@ function newViewport() {
if ((event.ctrlKey === true || event.metaKey === true)) { return }
let morePower = 1
if (IS_MAC) {
if (IS_MAC && Math.abs(event.wheelDelta) < MAC_MOUSE_WHEEL_INFINITE_SCROLL_THRESHOLD) {
let sensitivity
if (event.delta < 0) {
if (event.shiftKey === true) {
@@ -138,7 +138,7 @@ function newPicker() {
function onMouseWheel() {
if (IS_MAC) {
if (IS_MAC && Math.abs(event.wheelDelta) < MAC_MOUSE_WHEEL_INFINITE_SCROLL_THRESHOLD) {
let sensitivity
if (event.delta < 0) {
if (event.shiftKey === true) {
@@ -212,7 +212,7 @@ function newLayersPanel() {
function onMouseWheel(event) {
if (IS_MAC) {
if (IS_MAC && Math.abs(event.wheelDelta) < MAC_MOUSE_WHEEL_INFINITE_SCROLL_THRESHOLD) {
let sensitivity
if (event.delta < 0) {
if (event.shiftKey === true) {
@@ -124,7 +124,7 @@ function newListView() {
function onMouseWheel(event) {
if (IS_MAC) {
if (IS_MAC && Math.abs(event.wheelDelta) < MAC_MOUSE_WHEEL_INFINITE_SCROLL_THRESHOLD) {
let sensitivity
if (event.delta < 0) {
if (event.shiftKey === true) {