Improve type safety check for event button in ViewportCanvas
This commit is contained in:
@@ -154,7 +154,7 @@ function ViewportTimeTransport({
|
||||
|
||||
const startStepping = useCallback(
|
||||
(direction: -1 | 1, event: ReactPointerEvent<HTMLButtonElement>) => {
|
||||
if (event.button !== 0) {
|
||||
if (typeof event.button === "number" && event.button !== 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user