Git Product home page Git Product logo

magic-scroll's People

Contributors

mudin avatar thepjt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

magic-scroll's Issues

Keep scroll position done with window.scroll()

Hi and thx a lot for this work :)
I'm using it in my Gatsby website and it works like magic !

Sometimes I have to perform a smooth goto on my web page with this method
window.scroll({ top: elemPos + offSet, left: 0, behavior: 'smooth' });

And when I take back the control with my mouse, scroll position go back to last scroll position before my goto.

Do you know how to keep my scroll position ?
Thx

Using "magic-scrolll" for body scrollbar

I try to make it work for main scroll of the body. So I pass "body" string to the document query selector. But it do not work. Scrolling isn't smooth. Is there any way to make it work? Or any ideas to make smooth scroll on user action (wheel, keyboard, touchpad)?

Thanks!

Here is an example of my object init:

let magicScroll = new MagicScroll({
target: document.querySelector("body"),
speed: 160,
smooth: 24
});

A missing feature that would be perfect if could be added

An ability to exempt scroll effect from working in certain apps, like when 3D modeling one might want default behavior from scroll wheel, so it can be customize. For example when using Blender I have to zoom in and out scenes when using scroll wheel, but this app will force to scroll instead in 3D space. Not sure if it's possible to add this "black listing" feature?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.