diff --git a/web/index.js b/web/index.js index 236e327..348277a 100644 --- a/web/index.js +++ b/web/index.js @@ -38,7 +38,9 @@ class App extends Component { this.state.frequentlyUsed.stickers = this._getStickersByID(this.state.frequentlyUsed.stickerIDs) this.imageObserver = null this.packListRef = null + this.navRef = null this.sendSticker = this.sendSticker.bind(this) + this.navScroll = this.navScroll.bind(this) } _getStickersByID(ids) { @@ -137,6 +139,10 @@ class App extends Component { widgetAPI.sendSticker(sticker) } + navScroll(evt) { + this.navRef.scrollLeft += evt.deltaY * 12 + } + render() { if (this.state.loading) { return html`
<${Spinner} size=${80} green />
` @@ -149,7 +155,7 @@ class App extends Component { return html`

No packs found 😿

` } return html`
-