react-smooth-scrolling's People
react-smooth-scrolling's Issues
Random Whitespace below <SmoothProvider />
I don't know whether it's the framework issue or not but there's a whitespace below the Tag. I noticed the same problem in the Live Preview as well. Is this intended or a bug? @guilhermerodz
Problem with scrolling?
When i integrated it inside application, there appears to be two scrollbar now. one is the actual scrollbar which has no effect and the second one is the smooth one, so the result ends up fluctuation in scrolling.
Support for SSR
I am using this package with Next.js and I have placed the SmoothProvider
component in _app.js
_app.tsx Code
import { ThemeProvider } from "next-themes";
import { SmoothProvider } from "react-smooth-scrolling";
// Header and Footers
import Navbar from "./Navbar";
// types
import type { FC } from "react";
import type { AppProps } from "next/app";
const App: FC = ({ Component, pageProps }: AppProps) => {
return (
<main>
<ThemeProvider attribute="class">
<SmoothProvider skew>
<Navbar />
<Component {...pageProps} />
</SmoothProvider>
</ThemeProvider>
</main>
);
};
export default App;
The Bug
/mnt/e/web devolopement prac/next_js__prac/photon/node_modules/react-smooth-scrolling/dist/index.js:24
import React, { useEffect, useRef, useCallback } from 'react';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at new Script (node:vm:100:7)
at p._moduleCompile (/mnt/e/web devolopement prac/next_js__prac/photon/node_modules/jiti/dist/v8cache.js:2:3154)
at Module.o._compile (/mnt/e/web devolopement prac/next_js__prac/photon/node_modules/jiti/dist/v8cache.js:2:2705)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
at Module.load (node:internal/modules/cjs/loader:989:32)
at Function.Module._load (node:internal/modules/cjs/loader:829:14)
at Module.require (node:internal/modules/cjs/loader:1013:19)
at n (/mnt/e/web devolopement prac/next_js__prac/photon/node_modules/jiti/dist/v8cache.js:2:2472)
at Object.react-smooth-scrolling (/mnt/e/web devolopement prac/next_js__prac/photon/.next/server/pages/_app.js:3252:18)
at __webpack_require__ (/mnt/e/web devolopement prac/next_js__prac/photon/.next/server/webpack-runtime.js:25:42)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.