diff options
author | Mihai Varga <mihai.varga@collabora.com> | 2015-08-12 19:43:15 +0300 |
---|---|---|
committer | Mihai Varga <mihai.varga@collabora.com> | 2015-08-12 19:43:15 +0300 |
commit | f8c0f0b14328e2116838671837c311328d5dc5b7 (patch) | |
tree | 4e20c4ca9d246d186482e2730b42b7540e4c135e /loleaflet/README | |
parent | e7cd3a75ef49ba0d1b61a48d70df77bbff010aa9 (diff) |
loleaflet: added option to fire 'updatescrolloffset' when scrolling
Diffstat (limited to 'loleaflet/README')
-rw-r--r-- | loleaflet/README | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/loleaflet/README b/loleaflet/README index 7a97e357f..83650b925 100644 --- a/loleaflet/README +++ b/loleaflet/README @@ -119,15 +119,17 @@ Save: Scroll (the following are measured in pixels): - API: - map.scroll(x,y) + + options = An object with members: update (type: Boolean, default: false) + like {update: true} + map.scroll(x,y, options) + scroll right by 'x' and down by 'y' (or left and up if negative) - map.scrollDown(y) + map.scrollDown(y, options) + scroll down by 'y' (or up if negative) - map.scrollRight(x) + map.scrollRight(x, options) + scroll right by 'x' (or left if nevative) - map.scrollTop(y) + map.scrollTop(y, options) + scroll to 'y' offset relative to the beginning of the document - map.scrollLeft(x) + map.scrollLeft(x, options) + scroll to 'x' offset relative to the beginning of the document map.scrollOffset() + returns the scroll offset relative to the beginning of the document |