summaryrefslogtreecommitdiff
path: root/loleaflet/README
diff options
context:
space:
mode:
authorMihai Varga <mihai.varga@collabora.com>2015-08-04 11:09:10 +0300
committerMihai Varga <mihai.varga@collabora.com>2015-08-04 11:09:10 +0300
commit305ddc4cc1dc92be301be27653868bd0eab38ea0 (patch)
tree065b3b1daf18d260e4a2059903754e4cc86f84bd /loleaflet/README
parent47a96e8deedd082583581ac3e56c159ae12187cd (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/README6
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