Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e20624c

Browse files
Update README.md
1 parent d08314d commit e20624c

1 file changed

Lines changed: 30 additions & 2 deletions

File tree

README.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,32 @@
1-
jquery-scrollLock
1+
Scroll Lock
22
=================
33

4-
locks mouse wheel scroll inside container, preventing it from propagating to parent elements.
4+
Scroll Lock is a jQuery plugin that fully addresses the issue of locking mouse wheel scroll inside a given container, preventing it from propagating to parent element.
5+
6+
7+
##Why Scoll Lock?
8+
9+
* It does not change wheel scrolling speed, user experience will not be affected.
10+
* You get the same behavior regardless of the operating system mouse wheel vertical scrolling speed setting.
11+
12+
> On Windows it can be set to one screen or one line up to 100 lines per notch.
13+
14+
15+
##Usage
16+
17+
```
18+
19+
//Lock
20+
$('target').scrollLock();
21+
22+
//Unlock
23+
$('target').scrollLock('off');
24+
25+
```
26+
27+
28+
29+
30+
------
31+
32+
Have a bug? please [open a new issues.](https://github.com/MohammadYounes/jquery-scrollLock/issues?state=open)

0 commit comments

Comments
 (0)