git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit 47f88c71eec1667f35848253793375e28d250237

preview: immediately switch to new hover if preview is currently visible

Matt McKegg committed on 10/18/2017, 2:08:11 AM
Parent: fd15190d894f51e76a7c0fd5f53b0db037f171b8

Files changed

lib/observe-link-hover.jschanged
main-window.jschanged
lib/observe-link-hover.jsView
@@ -17,8 +17,15 @@
main-window.jsView
@@ -129,8 +129,9 @@
129129 ])
130130
131131 var currentHover = ObserveLinkHover(container, 500)
132132 var previewElement = Value()
133+ previewElement(currentHover.active.set)
133134
134135 currentHover(element => {
135136 var href = element && element.getAttribute('href')
136137 var preview = null

Built with git-ssb-web