You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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