Skip to content

Commit

Permalink
disable panning velocity, clean up unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-chu committed Apr 26, 2024
1 parent c737d7c commit 928afa6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,15 @@ import ZoomInIcon from '@mui/icons-material/ZoomIn';
import ZoomOutIcon from '@mui/icons-material/ZoomOut';
import ZoomOutMapIcon from '@mui/icons-material/ZoomOutMap';
import HelpIcon from '@mui/icons-material/Help';
import { PlayArrow, Stop } from '@mui/icons-material';
import SettingsIcon from '@mui/icons-material/Settings';
import PlayArrowIcon from '@mui/icons-material/PlayArrow';
import StopIcon from '@mui/icons-material/Stop';

import React, { useState, useEffect } from 'react';
import { TransformWrapper, TransformComponent, useControls } from "react-zoom-pan-pinch";
import { useOrientation } from "react-use";
import LazyLoad from 'react-lazyload';

import { prefix } from './prefix.js';
import { Place, PlayArrow, Stop } from '@mui/icons-material';

const jacket = `${prefix}/STARMAPv2022_jacket.svg`
const landscapeGIF = `${prefix}/landscape.gif`
Expand Down Expand Up @@ -649,6 +647,7 @@ export default function Home() {
<div className={styles.container} maxWidth={false}>
<TransformWrapper
wheel={{ disabled: true }}
panning={{velocityDisabled: true}}
disablePadding={true}
>
<Grid container
Expand Down

0 comments on commit 928afa6

Please sign in to comment.