git ssb

16+

Dominic / patchbay



Commit a63b8f8aceec2f9582efb7ddd51e11e58515dd66

trying to guess what might make tabs not reopen pages on mobile chrome

Dominic Tarr committed on 7/10/2016, 3:48:06 AM
Parent: f8122ec333c7c980419eb8a3fe0af6a6a78333ba

Files changed

modules/tabs.jschanged
modules/tabs.jsView
@@ -75,10 +75,10 @@
7575 var link = ancestor(ev.target)
7676 if(!link) return
7777 var path = link.hash.substring(1)
7878
79+ ev.preventDefault()
7980 ev.stopPropagation()
80- ev.preventDefault()
8181
8282 //open external links.
8383 //this ought to be made into something more runcible
8484 if(/^https?/.test(link.href)) return openExternal(link.href)
@@ -90,8 +90,10 @@
9090 el.scroll = keyscroll(el.querySelector('.scroller__content'))
9191 tabs.add(path, el, !ev.ctrlKey)
9292 localStorage.openTabs = JSON.stringify(tabs.tabs)
9393 }
94+
95+ return false
9496 }
9597
9698 window.addEventListener('keydown', function (ev) {
9799 if (ev.target.nodeName === 'INPUT' || ev.target.nodeName === 'TEXTAREA')
@@ -164,4 +166,5 @@
164166 return tabs
165167 }
166168
167169
170+

Built with git-ssb-web