Skip to content

a light script with prevent body scroll when part scroll, 浮动层局部滚动时,阻止页面整体滚动

License

Notifications You must be signed in to change notification settings

yangyuji/prevent-window-scroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prevent-window-scroll

a light script with prevent body scroll when part scroll, and it has no dependancy.

弹层局部滚动时,阻止页面整体滚动

特点:

  • 1、无依赖,原生js实现;
  • 2、经测试兼容90%以上的浏览器;
  • 3、经测试,小米max2自带浏览器和UC下快速滑动会动一点点,不过已经基本上满足方案要求;

预览

About

a light script with prevent body scroll when part scroll, 浮动层局部滚动时,阻止页面整体滚动

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published