Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
jellekralt committed Aug 12, 2016
1 parent 8fc5e32 commit 9a917b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ Lightweight drag to scroll directive for AngularJS
angular.module('MyApp', ['ng-drag-scroll']);
```

* Add an attribute set to true to an element with a scrollbar to make the content scrollable, setting the attribute to false will prevent drag to scroll behaviour.
The attribute value can be set to a scope varibale to easily toggle between enabled and disabled.
* Add an attribute to an element with a scrollbar to make the content scrollable. You can use the drag-scroll attribute value to switch the scrolling on/off. The value can be a variable or an expression.

```html
<div drag-scroll="true">
Expand Down

0 comments on commit 9a917b3

Please sign in to comment.