mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 17:45:22 +00:00
util: drop preventBrowserNativeContextMenu
This is done once at the top-level app, so is no longer needed.
This commit is contained in:
@@ -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' };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user