Provides an abstraction layer to compensate for browser differences in handling scrollLeft in RTL mode.
Install via bower:
bower install angular-scroll-rtl --save
Add dependency:
angular.module('myApp', ['td.scroll']);
Make sure that dist/angular-scroll-rtl.js
is included in your html file.
The module will extend the angular.element
prototype by adding the following methods:
The behaviour is similar to the corresponding jQuery method. The difference is, that it will account for browser discrepancies that occur when the element's direction is set to right-to-left. In this case, it will always return the right-most position as 0, whereas the left-most position is the maximum scroll value.
When provided with no value, returns the currently effective direction setting for the element. When a value is present, the direction of the element will be set to the specified value.