Commit c8278cc719a12db5a2a110402e4c30516a93e788
hide preview if scrolled on top of
Matt McKegg committed on 10/28/2017, 6:46:14 AMParent: acdbfae79726ea4f8f6b37bc223540ae5ecc093f
Files changed
modules/app/link-preview.js | changed |
modules/app/link-preview.js | ||
---|---|---|
@@ -24,8 +24,9 @@ | ||
24 | 24 | |
25 | 25 | if (href) { |
26 | 26 | if (ref.isFeed(href)) { |
27 | 27 | preview = api.profile.html.preview(href) |
28 | + preview.onwheel = previewElement.cancel | |
28 | 29 | } else if (href.includes('://')) { |
29 | 30 | preview = h('ProfilePreview', [ |
30 | 31 | h('section', [ |
31 | 32 | h('strong', [i18n('External Link'), ' ๐']), h('br'), |
Built with git-ssb-web