From cdbe62da5c62f809629f4e8b01524b223f38abd4 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Fri, 26 Jan 2024 10:38:02 -0500
Subject: cleaning up doubleClick documentview handling.  fixed pan mode to
 drag collections when not active.

---
 src/client/views/TouchScrollableMenu.tsx | 63 --------------------------------
 1 file changed, 63 deletions(-)
 delete mode 100644 src/client/views/TouchScrollableMenu.tsx

(limited to 'src/client/views/TouchScrollableMenu.tsx')

diff --git a/src/client/views/TouchScrollableMenu.tsx b/src/client/views/TouchScrollableMenu.tsx
deleted file mode 100644
index 530c693a7..000000000
--- a/src/client/views/TouchScrollableMenu.tsx
+++ /dev/null
@@ -1,63 +0,0 @@
-import * as React from 'react';
-import { computed } from 'mobx';
-import { observer } from 'mobx-react';
-
-export interface TouchScrollableMenuProps {
-    options: JSX.Element[];
-    bounds: {
-        right: number;
-        left: number;
-        bottom: number;
-        top: number;
-        width: number;
-        height: number;
-    };
-    selectedIndex: number;
-    x: number;
-    y: number;
-}
-
-export interface TouchScrollableMenuItemProps {
-    text: string;
-    onClick: () => any;
-}
-
-@observer
-export default class TouchScrollableMenu extends React.Component<TouchScrollableMenuProps> {
-    @computed
-    private get possibilities() {
-        return this.props.options;
-    }
-
-    @computed
-    private get selectedIndex() {
-        return this.props.selectedIndex;
-    }
-
-    render() {
-        return (
-            <div
-                className="inkToTextDoc-cont"
-                style={{
-                    transform: `translate(${this.props.x}px, ${this.props.y}px)`,
-                    width: 300,
-                    height: this.possibilities.length * 25,
-                }}>
-                <div className="inkToTextDoc-scroller" style={{ transform: `translate(0, ${-this.selectedIndex * 25}px)` }}>
-                    {this.possibilities}
-                </div>
-                <div className="shadow" style={{ height: `calc(100% - 25px - ${this.selectedIndex * 25}px)` }}></div>
-            </div>
-        );
-    }
-}
-
-export class TouchScrollableMenuItem extends React.Component<TouchScrollableMenuItemProps> {
-    render() {
-        return (
-            <div className="menuItem-cont" onClick={this.props.onClick}>
-                {this.props.text}
-            </div>
-        );
-    }
-}
-- 
cgit v1.2.3-70-g09d2

