Skip to content

Commit

Permalink
Revert some changes that depended upon touch events
Browse files Browse the repository at this point in the history
  • Loading branch information
captbaritone committed Apr 21, 2024
1 parent c84438c commit 15cc880
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 7 additions & 1 deletion packages/webamp/js/components/ResizeTarget.tsx
Expand Up @@ -70,6 +70,12 @@ function ResizeTarget(props: Props) {
setMouseDown(true);
};

return <div onPointerDown={handleMouseDown} {...passThroughProps} />;
return (
<div
onMouseDown={handleMouseDown}
onTouchStart={handleMouseDown}
{...passThroughProps}
/>
);
}
export default memo(ResizeTarget);
5 changes: 4 additions & 1 deletion packages/webamp/js/components/WindowManager.tsx
Expand Up @@ -177,7 +177,10 @@ export default function WindowManager({ windows: propsWindows }: Props) {
<div
key={w.key}
onBlur={onBlur}
onPointerDown={(e: React.MouseEvent<HTMLDivElement>) => {
onMouseDown={(e: React.MouseEvent<HTMLDivElement>) => {
handleMouseDown(w.key, e);
}}
onTouchStart={(e: React.TouchEvent<HTMLDivElement>) => {
handleMouseDown(w.key, e);
}}
style={{
Expand Down

0 comments on commit 15cc880

Please sign in to comment.