From 6d28420cee4a6cab1de0292e52be9ca4c73378ae Mon Sep 17 00:00:00 2001 From: Valdrin Koshi Date: Fri, 27 Oct 2017 13:43:07 -0700 Subject: [PATCH] IronScrollManager and scrollAction (#234) * copy iron-dropdown-scroll-manager from iron-dropdown * add allowOutsideScroll, add tests * Copyright (c) 2017 * restore scroll position when scroll happens (because a11y) * hope to fix ie10 * get scroll info from wheelDelta (IE10) * minimal listeners * listen to WebComponentsReady * Update tests scrollEvents * use wct 5, update demo * remove elementIsScrollLocked, cleanup tests * listen to all scroll-triggering events * Listen scroll events on html only * restore elementIsScrollLocked * noOutsideScroll & refitOnScroll * scrollAction * incorporate feedback * s/Delays/Debounces --- demo/index.html | 6 +- iron-overlay-behavior.html | 150 ++++++- iron-scroll-manager.html | 381 ++++++++++++++++++ test/index.html | 4 + .../iron-overlay-behavior-scroll-actions.html | 184 +++++++++ test/iron-scroll-manager.html | 186 +++++++++ test/x-scrollable-element.html | 53 +++ 7 files changed, 939 insertions(+), 25 deletions(-) create mode 100644 iron-scroll-manager.html create mode 100644 test/iron-overlay-behavior-scroll-actions.html create mode 100644 test/iron-scroll-manager.html create mode 100644 test/x-scrollable-element.html diff --git a/demo/index.html b/demo/index.html index e9c6a20..d0a5f92 100644 --- a/demo/index.html +++ b/demo/index.html @@ -55,7 +55,7 @@

Use with-backdrop to add a backdrop to your overlay. Tabbing wi