Socket
Socket
Sign inDemoInstall

sweet-scroll

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sweet-scroll - npm Package Versions

234

4.0.0

Diff

Changelog

Source

4.0.0

Breaking changes

  • Remove find of scrollabl elements logic.
  • Change the default value of container from body,html to window.
    • If you specify body,html, it may cause unintended behaviors.
  • Remove quickMode options.

Bug fixes

  • Fixed a performance problem in which unnecessary matching was execute in onclick handling.
    • Performance improves when there is a lot of DOM.
tsuyoshiwada
published 3.0.1 •

Changelog

Source

3.0.1

Bug fixes

  • Fix bug that did not scroll when opening devtools #44 (Resolves #38)
tsuyoshiwada
published 3.0.0 •

Changelog

Source

3.0.0

TypeScript support and file size down are the main changes. 3.x is a version that contains many destructive changes.

New features

  • Support TypeScript :tada:
  • Reduce file size by 43.04% !
    • We reviewed many options and functions and cut unnecessary items.
  • Add factory method (SweetScroll.create(options?: PartialOptions, container?: string | Element))
    • This is useful if you do not like the coding style using new or you do not need to manage instances.

Breaking changes

  • IE9 was excluded from browser support
    • It can correspond by using polyfill of requestAnimationFrame.
  • Remove options
    • delay
    • outputLog
  • Rename options
    • verticalScroll -> vertical
    • horizontalScroll -> horizontal
    • stopScroll -> cancellable
    • beforeScroll -> before
    • afterScroll -> after
    • canelScroll -> canel
    • completeScroll -> complete
    • stepScroll -> step
  • Remove easings (You can use the same easing by passing the function described in README instead.)
    • easeInElastic
    • easeOutElastic
    • easeInOutElastic
    • easeInBack
    • easeOutBack
    • easeInOutBack
    • easeInBounce
    • easeOutBounce
    • easeInOutBounce
  • Remove distance argument pattern
    • Object like string (top:0, left:100)
  • Rename callback methods
    • beforeScroll -> onBefore
    • afterScroll -> onAfter
    • cancelScroll -> onCancel
    • completeScroll -> onComplete
    • stepScroll -> onStep

Minor changes

  • Fixed headers can now be specified from elements. (header)
  • Add an instance to the final argument to the optional callback.
    • It corresponds to a problem that can not refer to this when using arrow function.
tsuyoshiwada
published 2.2.1 •

tsuyoshiwada
published 2.2.0 •

Changelog

Source

2.2.0

  • Support server-side rendering
tsuyoshiwada
published 2.1.0 •

Changelog

Source

2.1.0

New feature

  • Add quickMode options
    • Instantly scroll to the destination! (It's recommended to use it with easeOutExpo)

Minor changes

  • Update doc
  • Update devDependencies
tsuyoshiwada
published 2.0.1 •

Changelog

Source

2.0.1

  • Change to silent error if container element is not found. (Outputable with outputLog option)
  • Minor change in log messages
  • Fix demo page can't be viewed locally
  • Add loging tests
tsuyoshiwada
published 2.0.0 •

Changelog

Source

2.0.0

Breaking changes

Related issues #31. Thanks @nickclaw!!

  • Need to initialize an instance after DOMContentLoaded. (So far it has been listening in the library.)
    • In many cases, since there is no need to be initialized before DOMContentLoaded.
  • Removed initialized callback & method.
  • Removed searchContainerTimeout options.

Minor changes

  • Update doc
  • Update design of demo page
  • Update devDependencies
  • Change some of output log
  • Update some tests
tsuyoshiwada
published 1.1.0 •

Changelog

Source

1.1.0

  • Add searchContainerTimeout options
    • We changed the find logic of container element. Because there is a possibility of Timeout Along with it was to add this option.
  • Add outputLog options
    • In order to aid in debugging has been added the output of the warning log.
  • Add yarn.lock
  • Update devDependencies
  • Fix some tests
tsuyoshiwada
published 1.0.4 •

Changelog

Source

1.0.4

  • Fixed a bug related to the container. (ref: #27)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc