Scroll like Opera

An userscript to provide Opera(old) like scrolling behavior.

目前为 2014-12-29 提交的版本。查看 最新版本

作者
eight
评分
0 0 0
版本
2.0.2
创建于
2014-12-23
更新于
2014-12-29
大小
6.0 KB
许可证
暂无
适用于
所有网站

Scroll like Opera

An userscript to provide Opera(old) like scrolling behavior.

Features

  • Scroll horizontally when the cursor hover on horizontal scrollbar.
  • Scroll horizontally if there is only one horizontal scrollbar.
  • Smooth scrolling.

Test page

https://rawgit.com/eight04/scroll-like-opera/master/demo.html

Todos

  • Better behavior when scrolling to top/bottom.
  • Get wrong value if zooming the page.
  • Need a better way to detect scrollbar. Current method doesn't work in Firefox's responsive design mode.
  • Chrome doesn't fire wheel event when cursor hover on window scrollbar.

Changelog

  • 2.0.2 (Dec 29, 2014):
    • Update GM_config to 0.2.2.
  • 2.0.1 (Dec 29, 2014):
    • Use a different GM_config library.
  • 2.0.0 (Dec 24, 2014):
    • Stop detecting scrollbar and don't scroll overflow:hidden element anymore.
  • 1.0.4 (Dec 23, 2014):
    • Fix typo.
  • 1.0.3 (Dec 23, 2014):
    • Fix inline element.
  • 1.0.2 (Dec 23, 2014):
    • Fix menu name.
  • 1.0.1 (Dec 23, 2014):
    • Correct name.
  • 1.0.0 (Dec 23, 2014):
    • First release.
  • 0.1.0 (Dec 19, 2014):
    • Initial version.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址