diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-06-23 12:09:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-23 12:09:56 -0400 |
commit | ca8d57c4dbfe839db28b583caa7d599c0cfc023a (patch) | |
tree | 0a4fc6eabf8b8d7f87fdb687b03cc4da7e48d2c3 /webapp/stores | |
parent | b01da39887b990b8c57484f53643a3c0ea5d531b (diff) | |
download | chat-ca8d57c4dbfe839db28b583caa7d599c0cfc023a.tar.gz chat-ca8d57c4dbfe839db28b583caa7d599c0cfc023a.tar.bz2 chat-ca8d57c4dbfe839db28b583caa7d599c0cfc023a.zip |
PLT-6890 Fix various scrolling issues (#6727)
* Fix various scrolling issues
* Move reaction scrolling to reaction list
* Handle scrolling when RHS opens
* Only run scroll update code when posts change
Diffstat (limited to 'webapp/stores')
-rw-r--r-- | webapp/stores/scroll_store.jsx | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/webapp/stores/scroll_store.jsx b/webapp/stores/scroll_store.jsx deleted file mode 100644 index 4f5abd64a..000000000 --- a/webapp/stores/scroll_store.jsx +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -import EventEmitter from 'events'; - -const UPDATE_POST_SCROLL_EVENT = 'update_post_scroll'; - -class ScrollStoreClass extends EventEmitter { - emitPostScroll() { - this.emit(UPDATE_POST_SCROLL_EVENT); - } - - addPostScrollListener(callback) { - this.on(UPDATE_POST_SCROLL_EVENT, callback); - } - - removePostScrollListener(callback) { - this.removeListener(UPDATE_POST_SCROLL_EVENT, callback); - } -} - -var ScrollStore = new ScrollStoreClass(); -export default ScrollStore; - |