|
|
|
@ -42,7 +42,8 @@ function useTimelineScroll({ wheelSensitivity, mouseWheelZoomModifierKey, mouseW
|
|
|
|
const makeUnit = (v: number) => ((direction * v) > 0 ? 1 : -1);
|
|
|
|
const makeUnit = (v: number) => ((direction * v) > 0 ? 1 : -1);
|
|
|
|
|
|
|
|
|
|
|
|
if (wheelEvent[keyMap[mouseWheelZoomModifierKey]]) {
|
|
|
|
if (wheelEvent[keyMap[mouseWheelZoomModifierKey]]) {
|
|
|
|
zoomRel(direction * pixelY * wheelSensitivity * 0.4);
|
|
|
|
// negative because https://github.com/mifi/lossless-cut/issues/2703
|
|
|
|
|
|
|
|
zoomRel(-direction * pixelY * wheelSensitivity * 0.4);
|
|
|
|
} else if (wheelEvent[keyMap[mouseWheelFrameSeekModifierKey]]) {
|
|
|
|
} else if (wheelEvent[keyMap[mouseWheelFrameSeekModifierKey]]) {
|
|
|
|
shortStep(makeUnit(pixelX + pixelY));
|
|
|
|
shortStep(makeUnit(pixelX + pixelY));
|
|
|
|
} else if (wheelEvent[keyMap[mouseWheelKeyframeSeekModifierKey]]) {
|
|
|
|
} else if (wheelEvent[keyMap[mouseWheelKeyframeSeekModifierKey]]) {
|
|
|
|
|