diff options
author | Mihai Varga <mihai.varga@collabora.com> | 2015-08-04 11:09:10 +0300 |
---|---|---|
committer | Mihai Varga <mihai.varga@collabora.com> | 2015-08-04 11:09:10 +0300 |
commit | 305ddc4cc1dc92be301be27653868bd0eab38ea0 (patch) | |
tree | 065b3b1daf18d260e4a2059903754e4cc86f84bd /loleaflet/README | |
parent | 47a96e8deedd082583581ac3e56c159ae12187cd (diff) |
lolealfet: scrollOffset, scrollLeft, scrollTop methods
That scroll to an absolute value, and scrollOffset returns the
absloute offset relative to the beginning of the document
Diffstat (limited to 'loleaflet/README')
-rw-r--r-- | loleaflet/README | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/loleaflet/README b/loleaflet/README index 1e36a9512..c2f053199 100644 --- a/loleaflet/README +++ b/loleaflet/README @@ -117,6 +117,12 @@ Scroll (the following are measured in pixels): + scroll down by 'y' (or up if negative) map.scrollRight(x) + scroll right by 'x' (or left if nevative) + map.scrollTop(y) + + scroll to 'y' offset relative to the beginning of the document + map.scrollLeft(x) + + scroll to 'x' offset relative to the beginning of the document + map.scrollOffset() + + returns the scroll offset relative to the beginning of the document - events map.on('docsize', function (e) {}) where: + e.x = document width |