pull/581/head
Steve Ruiz 2022-02-15 14:15:03 +00:00
rodzic 0fe6f1baa7
commit 835091d494
1 zmienionych plików z 1 dodań i 8 usunięć

Wyświetl plik

@ -3085,14 +3085,7 @@ export class TldrawApp extends StateManager<TDSnapshot> {
onZoom: TLWheelEventHandler = (info, e) => {
if (this.state.appState.status !== TDStatus.Idle) return
const delta =
e.deltaMode === WheelEvent.DOM_DELTA_PIXEL
? info.delta[2] / 50
: e.deltaMode === WheelEvent.DOM_DELTA_LINE
? info.delta[2] / 50
: info.delta[2] / 2
const delta = info.delta[2] / 50
this.zoomBy(delta, info.point)
this.onPointerMove(info, e as unknown as React.PointerEvent)
}