util: drop preventBrowserNativeContextMenu

This is done once at the top-level app, so is no longer needed.
This commit is contained in:
David Lechner
2022-05-12 19:20:46 -05:00
parent 6816795c6d
commit 5dc6b2e4cb
6 changed files with 6 additions and 33 deletions
-7
View File
@@ -3,13 +3,6 @@
import React, { useState } from 'react';
import { createCountFunc } from './iter';
/**
* Callback that can be passed to onContextMenu event handlers to prevent
* the native browser context menu from being shown.
*/
export const preventBrowserNativeContextMenu: React.MouseEventHandler = (e) =>
e.preventDefault();
/** Style to disable pointer events. */
export const pointerEventsNone: React.CSSProperties = { pointerEvents: 'none' };